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

Method test_cond

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

Source from the content-addressed store, hash-verified

287 return path
288
289 def test_cond(self):
290 first_path = self._v1_cond_saved_model()
291 imported = load.load(first_path)
292 function = imported.signatures["serving_default"]
293 self.assertAllClose({"output": 1.}, function(constant_op.constant(True)))
294 self.assertAllClose({"output": 0.}, function(constant_op.constant(False)))
295
296 def _v1_while_saved_model(self):
297 export_graph = ops.Graph()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected