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

Method test_nested_inputs

tensorflow/python/saved_model/save_test.py:200–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198 save.save(root, save_dir)
199
200 def test_nested_inputs(self):
201 root = tracking.AutoTrackable()
202 root.f = def_function.function(
203 lambda x: 2. * x[0],
204 input_signature=([tensor_spec.TensorSpec(None, dtypes.float32),
205 tensor_spec.TensorSpec(None, dtypes.float32)],))
206 root.f([constant_op.constant(1.), constant_op.constant(1.)])
207
208 def test_nested_outputs(self):
209 root = tracking.AutoTrackable()

Callers

nothing calls this directly

Calls 3

functionMethod · 0.45
fMethod · 0.45
constantMethod · 0.45

Tested by

no test coverage detected