tensorflow::Tensor::~Tensor()

tensorflow::Tensor::Tensor()

Creates a 1-dimensional, 0-element float tensor.

The returned Tensor is not a scalar (shape {}), but is instead an empty one-dimensional Tensor (shape {0}, NumElements() == 0). Since it has no elements, it does not need to be assigned a value and is initialized by default ( IsInitialized() is true). If this is undesirable, consider creating a one-element scalar which does require initialization:

doc_TensorFlow
2016-10-14 18:57:18
Comments
Leave a Comment

Please login to continue.