Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ _is_torchscript_zip
Function
_is_torchscript_zip
torch/serialization.py:1447–1448 ·
view source on GitHub ↗
(zip_file)
Source
from the content-addressed store, hash-verified
1445
1446
1447
def
_is_torchscript_zip(zip_file):
1448
return
'constants.pkl'
in zip_file.get_all_records()
Callers
1
load
Function · 0.85
Calls
1
get_all_records
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…