Skip to content

Commit c1d5e1a

Browse files
committed
Update base for Update on "[ET Device Support] TensorImpl carries device info"
This diff extends `TensorImpl` to carry device information, enabling the runtime tensor to track which device its data resides on (CPU, CUDA, etc.). This is a prerequisite for parsing device info from the schema and allocating device memory. Differential Revision: [D93635655](https://our.internmc.facebook.com/intern/diff/D93635655/) [ghstack-poisoned]
1 parent 1ee7042 commit c1d5e1a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

schema/program.fbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ enum TensorDataLocation : byte {
6363
}
6464

6565
// Device type enum indicating where a tensor resides or should be allocated.
66+
// Please keep this in sync with executorch/runtime/core/portable_type/device.h
6667
enum DeviceType : byte {
6768
CPU = 0,
6869
CUDA = 1,

0 commit comments

Comments
 (0)