diff --git a/xla/shape.h b/xla/shape.h index 75c8c0f825627..7d35bf470eab2 100644 --- a/xla/shape.h +++ b/xla/shape.h @@ -44,9 +44,9 @@ class Shape { Shape(); ~Shape(); Shape(const Shape&); - Shape(Shape&&); + Shape(Shape&&) noexcept; Shape& operator=(const Shape&); - Shape& operator=(Shape&&); + Shape& operator=(Shape&&) noexcept; // Construct a shape from a ShapeProto. explicit Shape(const ShapeProto& shape_proto); @@ -371,9 +371,9 @@ class ProgramShape { ProgramShape(); ~ProgramShape(); ProgramShape(const ProgramShape&); - ProgramShape(ProgramShape&&); + ProgramShape(ProgramShape&&) noexcept; ProgramShape& operator=(const ProgramShape&); - ProgramShape& operator=(ProgramShape&&); + ProgramShape& operator=(ProgramShape&&) noexcept; // Creates a ProgramShape from a ProgramShapeProto protobuf. explicit ProgramShape(const ProgramShapeProto& program_shape_proto);