viable/strict/1792046569: [Stable-ABI] Add torch::stable::from_file. (#198263)
- PyTorch: 2352 events in the last 90 days
- PyTorch: 2322th Release in the last 90 days
- Previous: earlier the same day · trunk/8cd072a84066f964d0fd62647f0155f8344a4f18: Mark unused parameters in autograd (#199461)
What happened
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…
Summary assembled by rule from the sources below