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

Method test_while

tensorflow/python/saved_model/load_v1_in_v2_test.py:314–319  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

312 return path
313
314 def test_while(self):
315 first_path = self._v1_while_saved_model()
316 imported = load.load(first_path)
317 function = imported.signatures["serving_default"]
318 self.assertAllClose({"output": 10}, function(constant_op.constant(4)))
319 self.assertAllClose({"output": 15}, function(constant_op.constant(5)))
320
321 def _v1_nested_while_saved_model(self):
322 export_graph = ops.Graph()

Callers

nothing calls this directly

Calls 5

_v1_while_saved_modelMethod · 0.95
functionFunction · 0.50
loadMethod · 0.45
assertAllCloseMethod · 0.45
constantMethod · 0.45

Tested by

no test coverage detected