Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning when work with torch.compile #200

Closed
heyfavour opened this issue Nov 30, 2023 · 3 comments
Closed

warning when work with torch.compile #200

heyfavour opened this issue Nov 30, 2023 · 3 comments
Labels

Comments

@heyfavour
Copy link

heyfavour commented Nov 30, 2023

[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] WON'T CONVERT /miniconda3/envs/venv/lib/python3.11/site-packages/torch_cluster/radius.py line 69
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] due to:
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] Traceback (most recent call last):
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] File "/miniconda3/envs/venv/lib/python3.11/site-packages/torch/_ops.py", line 692, in call
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] return self._op(args, **kwargs or {})
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] torch._dynamo.exc.TorchRuntimeError: Failed running call_function torch_cluster.radius(
(FakeTensor(..., device='cuda:1', size=(207249, 3)), FakeTensor(..., device='cuda:1', size=(3769, 3)), FakeTensor(..., device='cuda:1', size=(257,), dtype=torch.int64), FakeTensor(..., device='cuda:1', size=(257,), dtype=torch.int64), 6, 1024, 1), **{}):
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] The tensor has a non-zero number of elements, but its data is not allocated yet. Caffe2 uses a lazy allocation, so you will need to call mutable_data() or raw_mutable_data() to actually allocate memory.
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING]
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] from user code:
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] File "/home12/wangzx/miniconda3/envs/venv/lib/python3.11/site-packages/torch_cluster/radius.py", line 82, in
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] return torch.ops.torch_cluster.radius(x, y, ptr_x, ptr_y, r,
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING]
[2023-11-30 18:31:43,775] torch._dynamo.convert_frame: [WARNING] Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information

@rusty1s
Copy link
Owner

rusty1s commented Dec 2, 2023

Currently, any CPP/CUDA extension is not compatible with torch.compile. I am sorry :(

@borisfom
Copy link

Is it still the case?

Copy link

This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants