StringPiece tensorflow::Tensor::tensor_data() const
Returns a StringPiece mapping the current tensor's buffer.
The returned StringPiece may point to memory location on devices that the CPU cannot address directly.
NOTE: The underlying tensor buffer is refcounted, so the lifetime of the contents mapped by the StringPiece matches the lifetime of the buffer; callers should arrange to make sure the buffer does not get destroyed while the StringPiece is still used.
REQUIRES: DataTypeCanUseMemcpy(dt