Skip to content

Commit 9ba1404

Browse files
gchalumpfacebook-github-bot
authored andcommitted
Move ComputeDevice to split_table_batched_embeddings_ops_common (#4034)
Summary: X-link: facebookresearch/FBGEMM#1118 - Moved `ComputeDevice` to `split_table_batched_embeddings_ops_common` Reviewed By: spcyppt, q10 Differential Revision: D73608722
1 parent eeee38e commit 9ba1404

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

fbgemm_gpu/fbgemm_gpu/split_table_batched_embeddings_ops_common.py

+6
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ class BoundsCheckMode(enum.IntEnum):
106106
V2_FATAL = 6
107107

108108

109+
class ComputeDevice(enum.IntEnum):
110+
CPU = 0
111+
CUDA = 1
112+
MTIA = 2
113+
114+
109115
class EmbeddingSpecInfo(enum.IntEnum):
110116
feature_names = 0
111117
rows = 1

fbgemm_gpu/fbgemm_gpu/split_table_batched_embeddings_ops_training.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
BoundsCheckMode,
3838
CacheAlgorithm,
3939
CacheState,
40+
ComputeDevice,
4041
construct_cache_state,
4142
EmbeddingLocation,
4243
MAX_PREFETCH_DEPTH,
@@ -80,12 +81,6 @@ class DoesNotHavePrefix(Exception):
8081
pass
8182

8283

83-
class ComputeDevice(enum.IntEnum):
84-
CPU = 0
85-
CUDA = 1
86-
MTIA = 2
87-
88-
8984
class WeightDecayMode(enum.IntEnum):
9085
NONE = 0
9186
L2 = 1

0 commit comments

Comments
 (0)