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

Method contents

tensorflow/python/framework/test_util.py:1489–1493  ·  view source on GitHub ↗

Get the captured writes as a single string.

(self)

Source from the content-addressed store, hash-verified

1487 self.capture_location = capture_location
1488
1489 def contents(self):
1490 """Get the captured writes as a single string."""
1491 with open(self.capture_location) as tmp_file:
1492 output_data = "".join(tmp_file.readlines())
1493 return output_data
1494
1495
1496class FakeEagerSession(object):

Calls 2

readlinesMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected