Skip to content

Commit 47c3cc2

Browse files
lingvo-botcopybara-github
authored andcommitted
Use a simpler syntax as TF_GRAPH_DEF_VERSION was not defined.
PiperOrigin-RevId: 477659517
1 parent 36df2f3 commit 47c3cc2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lingvo/core/ops/input_common.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,7 @@ class InputOpV2GetNext : public OpKernel {
255255
<< statusor.status();
256256
return;
257257
}
258-
#if TF_GRAPH_DEF_VERSION >= 1137
259-
resource = std::move(statusor).value();
260-
#else
261-
resource = std::move(statusor).ValueOrDie();
262-
#endif
258+
resource = *std::move(statusor);
263259
resource->GetNext(ctx);
264260
}
265261
};

0 commit comments

Comments
 (0)