BroadcastDynamicShape
tensorflow::ops::BroadcastDynamicShape
Return the shape of s0 op s1 with broadcast.
Summary
Givens0
ands1
, tensors that represent shapes, computer0
, the broadcasted shape.s0
,s1
andr0
are all integer vectors.
Arguments:
- scope: A Scope object
Returns:
Output
: The r0 tensor.
BroadcastDynamicShape block
Source link :https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_array_ops.cpp
Argument:
- Scope
scope
: A Scope object (A scope is generated automatically each page. A scope is not connected.) - Input
s0
: connect Input or const shape node. (rank 1 integerTensor
) - Input
s1
: connect Input or const shape node. (rank 1 integerTensor
)
Return:
- Output r0 : Output object of BroadcastDynamicShape class object.
Result:
- std::vector(Tensor) result_output : Returned object of executed result by calling session. (A rank 1 integer Tensor representing the broadcasted shape)
Using Method
※ broadcast를 이용하는 기능으로 shape를 재구성 하는 역할을 한다. Array_ops의 Shape 기능에서 shape를 뽑아낸 후 같은 차원인 두 개의 shape를 동일 하게 만들고, Array_ops의 ReShape 기능으로 shape를 조정하는 방식으로 쓰인다.