We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16d59c3 commit 32a96caCopy full SHA for 32a96ca
1 file changed
fbgemm_gpu/fbgemm_gpu/split_table_batched_embeddings_ops_training_common.py
@@ -12,21 +12,7 @@
12
import torch
13
from torch import Tensor
14
15
-try:
16
- try:
17
- from torch.compiler import is_compiling
18
-
19
- def is_torchdynamo_compiling() -> bool: # type: ignore[misc]
20
- # at least one test fails if we import is_compiling as a different name
21
- return is_compiling()
22
23
- except Exception:
24
- # torch.compiler.is_compiling is not available in torch 1.10
25
- from torch._dynamo import is_compiling as is_torchdynamo_compiling
26
-except Exception:
27
28
29
- return False
+from torch.compiler import is_compiling as is_torchdynamo_compiling
30
31
32
# @manual=//deeplearning/fbgemm/fbgemm_gpu/codegen:split_embedding_codegen_lookup_invokers
0 commit comments