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::dtype()

DataType tensorflow::Tensor::dtype() const Returns the data type.

tensorflow::Tensor::flat_inner_dims()

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

tensorflow::Tensor::flat()

TTypes<T>::ConstFlat tensorflow::Tensor::flat() const

tensorflow::Tensor::flat()

TTypes<T>::Flat tensorflow::Tensor::flat() Return the tensor data as an Eigen::Tensor of the data type and a specified shape. These methods allow you to access the data with the dimensions and sizes of your choice. You do not need to know the number of dimensions of the Tensor to call them. However, they CHECK that the type matches and the dimensions requested creates an Eigen::Tensor with the same number of elements as the tensor. Example: Tensor my_ten(...built with Shape{planes: 4, ro

tensorflow::Tensor::flat_inner_dims()

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

tensorflow::Tensor::FillDescription()

void tensorflow::Tensor::FillDescription(TensorDescription *description) const Fill in the TensorDescription proto with metadata about the tensor that is useful for monitoring and debugging.

tensorflow::Tensor::bit_casted_tensor()

TTypes< T, NDIMS >::ConstTensor tensorflow::Tensor::bit_casted_tensor() const Return the tensor data to an Eigen::Tensor with the same size but a bitwise cast to the specified dtype T. Using a bitcast is useful for move and copy operations. NOTE: this is the same as tensor() except a bitcast is allowed.

tensorflow::Tensor::bit_casted_tensor()

TTypes< T, NDIMS >::Tensor tensorflow::Tensor::bit_casted_tensor() Return the tensor data to an Eigen::Tensor with the same size but a bitwise cast to the specified dtype T. Using a bitcast is useful for move and copy operations. NOTE: this is the same as tensor() except a bitcast is allowed.

tensorflow::Tensor::BufferHash()

size_t tensorflow::Tensor::BufferHash() const