MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / mod

Method mod

tensorflow/python/framework/config_test.py:163–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161
162 @def_function.function
163 def mod():
164 with ops.device('/device:GPU:0'):
165 a = constant_op.constant(1.0)
166 b = constant_op.constant(1.0)
167 return math_ops.mod(a, b)
168
169 config.set_soft_device_placement(True)
170 self.assertEqual(config.get_soft_device_placement(), True)

Callers 15

evenMethod · 0.80
_beam_search_stepFunction · 0.80
_do_transformMethod · 0.80
_shard_indicesMethod · 0.80
_check_multiple_ofFunction · 0.80
_unflatten_sparse_tensorFunction · 0.80
trainFunction · 0.80
apply_gradientsMethod · 0.80
apply_gradientsMethod · 0.80
restart_decay_fnFunction · 0.80
apply_gradientsMethod · 0.80
_apply_gradientMethod · 0.80

Calls 2

deviceMethod · 0.45
constantMethod · 0.45

Tested by

no test coverage detected