You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update base for Update on "[slimtensor] Introduce Device and ScalarType headers for SlimTensor minimal support"
This diff introduces the foundational c10 core headers for SlimTensor, a lightweight tensor implementation used by torchnative, to cuda backend runtime and further it will be used by all aoti-driven backends like MPS.
We add:
- DeviceType.h - Device type enum (CPU only for now)
- Device.h - Device class representing compute device location
- ScalarType.h - Scalar type enum with elementSize() helper (Float only for now)
These headers are modeled after PyTorch's c10 but simplified for our needs. The enum values are kept compatible with PyTorch for serialization compatibility.
This is the first step in migrating SlimTensor to replace ETensor as the internal tensor representation in CUDA backend. Future diffs will add Storage, SlimTensor class, and additional dtypes/devices incrementally.
Differential Revision: [D89747061](https://our.internmc.facebook.com/intern/diff/D89747061/)
[ghstack-poisoned]
0 commit comments