message: Do not allocate memory for literal as it will be allocated later.
diff: @@ -74,6 +74,10 @@ class Literal {
  Literal(const Literal& other) = delete;
  Literal& operator=(const Literal& other) = delete;
  Literal(Literal&& other);
  + // 'allocate_arrays' indicates whether to allocate memory for the arrays in
  + // the shape. If false, buffer pointers inside of the Literal::Pieces are set
  + // to nullptr.
  + Literal(const Shape& shape, bool allocate_arrays);
  Literal& operator=(Literal&& other);
  // Literals are equal if they have compatible shapes and the same data
  @@ -659,11 +663,6 @@ class Literal {
  int64 sparse_element_count() const;
  protected:
  - // 'allocate_arrays' indicates whether to allocate memory for the arrays in
  - // the shape. If false, buffer pointers inside of the Literal::Pieces are set
  - // to nullptr.
  - Literal(const Shape& shape, bool allocate_arrays);
  -
  // Internal template helper for the Literal::CopySliceFrom(), matching its
  // arguments one by one.
  template <typename NativeT>
  