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
This commit is contained in:
A. Unique TensorFlower 2019-02-06 08:15:03 -08:00 committed by TensorFlower Gardener
parent 2ccb446ecf
commit 4eef6deec6

View File

@ -186,7 +186,7 @@ TEST(VariantTest, TensorListTest) {
x.Encode(&serialized); x.Encode(&serialized);
Variant y = TensorList(); Variant y = TensorList();
y.Decode(std::move(serialized)); y.Decode(serialized);
const TensorList& decoded_vec = *y.get<TensorList>(); const TensorList& decoded_vec = *y.get<TensorList>();
for (int i = 0; i < 4; ++i) { for (int i = 0; i < 4; ++i) {