Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_api
Method · 0.45
test_openfilesfromdisk_iterable_datapipe
Method · 0.45
_helper
Method · 0.45
test_groupby_iterable_datapipe
Method · 0.45
Calls
1
join
Method · 0.45
Tested by
no test coverage detected