Use std::move on the returned std::unique_ptr.
Our usage of c++14 does not get the guarantees of NRVO provided by c++17 and require this.
@@ -42,7 +42,7 @@ SequenceValueToDataset(const v0::Value::Sequence& sequence_pb) {
status.error_message()));
}
- return dataset;
+ return std::move(dataset);
}
} // namespace tensorflow_federated
