trunk/903d704d38916437fd995fdbc0db031e72de92d9: [Stable-ABI] Add torch::stable::from_file. (#198263)
Adds torch::stable::from_file to the stable ABI.
Executive Summary
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 .
Hyperscale Open Source & Cloud Infrastructure Review
From an infrastructure engineering, cloud-native scale, and hyperscale governance standpoint: - **Hyperscale Provenance:** Open-sourcing internal frameworks subjects proprietary systems to rigorous public analysis. - **De-facto Standard Cohesion:** Publishing enterprise tooling establishes interoperable specifications across distributed execution. - **Vendor Decoupling:** Platform engineers can inspect underlying telemetry and memory layouts without black-box vendor lock-in.
Impact on the Open Ecosystem
Bridges enterprise engineering scale with independent, reproducible open-source software stacks.