MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / _get_op

Method _get_op

tensorpack/callbacks/graph.py:238–242  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

236 run_step=run_step)
237
238 def _get_op(self):
239 vars = tf.trainable_variables()
240 ops = [tf.check_numerics(v, "CheckNumerics['{}']".format(v.op.name)).op for v in vars]
241 check_op = tf.group(*ops, name="CheckAllNumerics")
242 return check_op
243
244
245try:

Callers

nothing calls this directly

Calls 2

formatMethod · 0.80
groupMethod · 0.80

Tested by

no test coverage detected