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::operator=()

Tensor& tensorflow::Tensor::operator=(const Tensor &other) Assign operator. This tensor shares other's underlying storage.

tensorflow::Tensor::NumElements()

int64 tensorflow::Tensor::NumElements() const Convenience accessor for the tensor shape.

tensorflow::Tensor::matrix()

TTypes<T>::ConstMatrix tensorflow::Tensor::matrix() const

tensorflow::Tensor::matrix()

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

tensorflow::Tensor::IsSameSize()

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

tensorflow::Tensor::IsInitialized()

bool tensorflow::Tensor::IsInitialized() const If necessary, has this Tensor been initialized? Zero-element Tensors are always considered initialized, even if they have never been assigned to and do not have any memory allocated.

tensorflow::Tensor::IsAligned()

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

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.

tensorflow::Tensor::flat_outer_dims()

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