Skip to content

Commit

Permalink
RF TF runtime checks, meta check
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Oct 12, 2023
1 parent 61b75cc commit a6e6d24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion returnn/tf/frontend_low_level/_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ def runtime_sanity_checks(tensor: _TT) -> tf.Operation:
data + ["-> invalid shape[%i] or max(dyn_size[%i])" % (i, i)],
)
]
checks += [dyn_size_ext.get_runtime_sanity_check_op()]
dyn_size_ext_sanity_checks_op = dyn_size_ext.get_runtime_sanity_check_op()
assert dyn_size_ext_sanity_checks_op is not None, f"{dyn_size_ext} {dyn_size_ext.raw_tensor}?"
checks += [dyn_size_ext_sanity_checks_op]
return tf.group(*checks)

@staticmethod
Expand Down

0 comments on commit a6e6d24

Please sign in to comment.