trunk/903d704d38916437fd995fdbc0db031e72de92d9: [Stable-ABI] Add torch::stable::from_file. (#198263)
- PyTorch 近 90 天出现 2345 次
- PyTorch 近 90 天第 2315 次发版
- 上一次:同一天稍早 · trunk/8cd072a84066f964d0fd62647f0155f8344a4f18: Mark unused parameters in autograd (#199461)
发生了什么
Adds torch::stable::from_file to the stable ABI. Needed for torchvision stable-ABI, which currently carries a local stable_from_file helper for image decoding. Summary Introduces torch::stable::from_file and it returns a 1-D tensor backed by a memory-map of the file. Functional differences between the ATen and stable signatures include filename being const std::string& rather than std::string_view . Adds my_from_fil…
摘要按规则整理自下方来源原文