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

Method testGraphDebugInfo

tensorflow/lite/python/lite_test.py:1891–1897  ·  view source on GitHub ↗

Test a Sequential tf.keras model has debug info captured.

(self, test_context)

Source from the content-addressed store, hash-verified

1889 @parameterized.named_parameters(('_graph', context.graph_mode),
1890 ('_eager', context.eager_mode))
1891 def testGraphDebugInfo(self, test_context):
1892 """Test a Sequential tf.keras model has debug info captured."""
1893 with test_context():
1894 self._getSequentialModel()
1895 converter = lite.TFLiteConverter.from_keras_model_file(self._keras_file)
1896 converter.convert()
1897 self.assertValidDebugInfo(converter._debug_info)
1898
1899
1900class GrapplerTest(TestModels):

Callers

nothing calls this directly

Calls 4

_getSequentialModelMethod · 0.95
assertValidDebugInfoMethod · 0.80
from_keras_model_fileMethod · 0.45
convertMethod · 0.45

Tested by

no test coverage detected