MCPcopy Create free account
hub / github.com/pytorch/pytorch / read

Method read

test/test_datapipe.py:205–209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

203 self.opened = True
204
205 def read(self):
206 if self.opened:
207 return "".join(self)
208 else:
209 raise OSError("Cannot read from un-opened file descriptor")
210
211 def __iter__(self):
212 for i in range(5):

Callers 4

test_apiMethod · 0.45
_helperMethod · 0.45

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected