Skip to content

Commit e5496b5

Browse files
chrisyeh96caisq
authored andcommitted
Remove extraneous check for Eager mode (#17125)
The check is already made once at the start of the method
1 parent d100729 commit e5496b5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tensorflow/python/ops/control_flow_ops.py

-2
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ def true_assert():
178178
condition, data, summarize, name="Assert")
179179

180180
guarded_assert = cond(condition, no_op, true_assert, name="AssertGuard")
181-
if context.in_eager_mode():
182-
return
183181
return guarded_assert.op
184182

185183

0 commit comments

Comments
 (0)