Small fix for how std::move is used in constructors

PiperOrigin-RevId: 158141564
This commit is contained in:
A. Unique TensorFlower 2017-06-06 08:08:26 -07:00 committed by TensorFlower Gardener
parent 2a61c1652e
commit 2e7e1d57bd
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ bool XlaCompiler::Argument::operator==(
}
XlaCompiler::XlaCompiler(XlaCompiler::Options options)
: options_(std::move(options)),
: options_(options),
initialization_status_(Status::OK()),
next_step_id_(1),
device_(

View File

@ -28,7 +28,7 @@ Computation::Computation(ServiceInterface* parent,
: handle_(handle), parent_(parent) {}
Computation::Computation(Computation&& computation)
: handle_(computation.handle_), parent_(computation.parent_) {
: handle_(std::move(computation.handle_)), parent_(computation.parent_) {
computation.ResetWithoutFreeing();
}