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.
Please login to continue.