Link Search Menu Expand Document

ShapeN


tensorflow C++ API

tensorflow::ops::ShapeN

Returns shape of tensors.


Summary

This operation returns N 1-D integer tensors representing shape ofinput[i]s.

Arguments:

Returns:

  • OutputList: The output tensor.

ShapeN 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 input: Any tensor.

Output:

  • Output output: Output object of ShapeN class object.

Result:

  • std::vector(Tensor) result_output: The output tensor.

Using Method

※ input으로 들어온 tensor의 shape를 뽑아낸다.