From 4eef6deec6995e07a2d07a94f647f208d43fecfa Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 6 Feb 2019 08:15:03 -0800 Subject: [PATCH] Remove erroneous move; the erstwhile, moved-from state is still needed. This hadn't manifested as an error so far because the moved-from object had accidentally not been movable so far, so the move was ineffective. PiperOrigin-RevId: 232677767 --- tensorflow/core/framework/variant_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/framework/variant_test.cc b/tensorflow/core/framework/variant_test.cc index 08d09de7b84..8947f93887a 100644 --- a/tensorflow/core/framework/variant_test.cc +++ b/tensorflow/core/framework/variant_test.cc @@ -186,7 +186,7 @@ TEST(VariantTest, TensorListTest) { x.Encode(&serialized); Variant y = TensorList(); - y.Decode(std::move(serialized)); + y.Decode(serialized); const TensorList& decoded_vec = *y.get(); for (int i = 0; i < 4; ++i) {