Skip to content

Add DRAM_SSD to BackendType enum in tbe/ssd/ssd_config.py#5789

Open
lizhe-ji wants to merge 1 commit into
pytorch:mainfrom
lizhe-ji:export-D106438433
Open

Add DRAM_SSD to BackendType enum in tbe/ssd/ssd_config.py#5789
lizhe-ji wants to merge 1 commit into
pytorch:mainfrom
lizhe-ji:export-D106438433

Conversation

@lizhe-ji
Copy link
Copy Markdown

Summary:
The BackendType enum in tbe/ssd/ssd_config.py was missing the DRAM_SSD variant
(value=3) that already exists in split_table_batched_embeddings_ops_common.py.
Since torchrec's embedding_lookup.py imports BackendType from fbgemm_gpu.tbe.ssd
first, using EmbeddingComputeKernel.DRAM_SSD_VIRTUAL_TABLE would fail with
AttributeError: type object 'BackendType' has no attribute 'DRAM_SSD'.

Added DRAM_SSD = 3 and updated from_str() to include the dram_ssd mapping.

Differential Revision: D106438433

Summary:
The BackendType enum in tbe/ssd/ssd_config.py was missing the DRAM_SSD variant
(value=3) that already exists in split_table_batched_embeddings_ops_common.py.
Since torchrec's embedding_lookup.py imports BackendType from fbgemm_gpu.tbe.ssd
first, using EmbeddingComputeKernel.DRAM_SSD_VIRTUAL_TABLE would fail with
AttributeError: type object 'BackendType' has no attribute 'DRAM_SSD'.

Added DRAM_SSD = 3 and updated from_str() to include the dram_ssd mapping.

Differential Revision: D106438433
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant