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

Method _make_asset

tensorflow/python/saved_model/load_test.py:195–199  ·  view source on GitHub ↗
(self, contents)

Source from the content-addressed store, hash-verified

193 imported_graph.control_outputs)
194
195 def _make_asset(self, contents):
196 filename = tempfile.mktemp(prefix=self.get_temp_dir())
197 with open(filename, "w") as f:
198 f.write(contents)
199 return filename
200
201 @test_util.run_in_graph_and_eager_modes
202 def test_assets(self, cycles):

Callers 5

test_assetsMethod · 0.95
test_capture_assetsMethod · 0.95
test_dedup_assetsMethod · 0.95

Calls 2

get_temp_dirMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected