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

Method random_func

tensorflow/python/data/kernel_tests/map_test.py:874–877  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

872 self.assertFalse(found_warning)
873
874 def random_func(x):
875 x = math_ops.add(x, 1)
876 random_ops.random_shuffle([x, math_ops.square(x)])
877 return x
878
879 with warnings.catch_warnings(record=True) as w:
880 _ = dataset_ops.Dataset.range(10).map(random_func)

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
squareMethod · 0.45

Tested by

no test coverage detected