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:
parent
2ccb446ecf
commit
4eef6deec6
@ -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<TensorList>();
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user