code: public org.tensorflow.framework.TensorProto getTensor() {
      return tensor_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : tensor_;
    }
docs: <pre>
  The client can populate a TensorProto using a tensorflow::Tensor`, or
  directly using the protobuf field accessors.
  The client specifies whether the returned tensor values should be
  filled tensor fields (float_val, int_val, etc.) or encoded in a
  compact form in tensor.tensor_content.
  </pre>
  
  <code>optional .tensorflow.TensorProto tensor = 2;</code>