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

Class Adder

tensorflow/python/saved_model/save_test.py:298–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296 def test_docstring(self):
297
298 class Adder(module.Module):
299
300 @def_function.function(input_signature=[tensor_spec.TensorSpec(
301 shape=None, dtype=dtypes.float32)])
302 def add(self, x):
303 return x + x + 1.
304
305 to_save = Adder()
306 to_save.add(constant_op.constant(1.))

Callers 1

test_docstringMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_docstringMethod · 0.56