Take proto by value.
PiperOrigin-RevId: 312626373 Change-Id: I2effeab7b0c97052f14b8f52b653f24a379dc7ee
This commit is contained in:
parent
ed0eb69b76
commit
a8001b9e8d
@ -29,8 +29,8 @@ namespace xla {
|
||||
class XlaComputation {
|
||||
public:
|
||||
XlaComputation() : unique_id_(-1) {}
|
||||
XlaComputation(const HloModuleProto& proto)
|
||||
: unique_id_(proto.id()), proto_(proto) {}
|
||||
XlaComputation(HloModuleProto proto)
|
||||
: unique_id_(proto.id()), proto_(std::move(proto)) {}
|
||||
|
||||
~XlaComputation() {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user