tensorflow::Tensor::scalar()

TTypes< T >::Scalar tensorflow::Tensor::scalar() Return the Tensor data as a TensorMap of fixed size 1: TensorMap<TensorFixedSize<T, 1>>. Using scalar() allows the compiler to perform optimizations as the size of the tensor is known at compile time.

tensorflow::Tensor::scalar()

TTypes< T >::ConstScalar tensorflow::Tensor::scalar() const

tensorflow::Tensor::shaped()

TTypes< T, NDIMS >::ConstTensor tensorflow::Tensor::shaped(gtl::ArraySlice< int64 > new_sizes) const

tensorflow::Tensor::shaped()

TTypes< T, NDIMS >::Tensor tensorflow::Tensor::shaped(gtl::ArraySlice< int64 > new_sizes)

tensorflow::Tensor::flat_outer_dims()

TTypes< T, NDIMS >::ConstTensor tensorflow::Tensor::flat_outer_dims() const

tensorflow::Tensor::IsSameSize()

bool tensorflow::Tensor::IsSameSize(const Tensor &b) const

tensorflow::Tensor::matrix()

TTypes<T>::Matrix tensorflow::Tensor::matrix()

tensorflow::Tensor::IsAligned()

bool tensorflow::Tensor::IsAligned() const Returns true iff this tensor is aligned.

tensorflow::Tensor::flat_outer_dims()

TTypes< T, NDIMS >::Tensor tensorflow::Tensor::flat_outer_dims() Returns the data as an Eigen::Tensor with NDIMS dimensions, collapsing all Tensor dimensions but the first NDIMS-1 into the last dimension of the result. If NDIMS > dims() then trailing dimensions of size 1 will be added to make the output rank NDIMS.

tensorflow::Tensor::FromProto()

bool tensorflow::Tensor::FromProto(const TensorProto &other) TF_MUST_USE_RESULT Parse other and construct the tensor. Returns true iff the parsing succeeds. If the parsing fails, the state of *this is unchanged.