code: public org.tensorflow.framework.TensorShapeProto getShape() {
      return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_;
    }
docs: <pre>
  Shape of the tensor.
  </pre>
  
  <code>optional .tensorflow.TensorShapeProto shape = 2;</code>