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.
Tensor& tensorflow::Tensor::operator=(const Tensor &other) Assign operator. This tensor shares other's underlying storage.
int64 tensorflow::Tensor::NumElements() const Convenience accessor for the tensor shape.
TTypes<T>::ConstMatrix tensorflow::Tensor::matrix() const
TTypes<T>::Matrix tensorflow::Tensor::matrix()
bool tensorflow::Tensor::IsSameSize(const Tensor &b) const
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.
bool tensorflow::Tensor::IsAligned() const Returns true iff this tensor is aligned.
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.
TTypes< T, NDIMS >::ConstTensor tensorflow::Tensor::flat_outer_dims() const
Page 8 of 319