This repository was archived by the owner on Aug 7, 2024. It is now read-only.
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
[Compile] Error with FullGraph "eager" compile on TensorSubclass version #108
Closed
Description
Summary
Using nightly: torch==2.2.0.dev20230922+cu121
Repro
Running the following tests:
pytest tests/test_compile.py -k "eager"
As well I created a PyTorch Issue tracking what I think is a minimal repro:
Issue: pytorch/pytorch#109910
Output
E torch._dynamo.exc.Unsupported: call_function UserDefinedObjectVariable(to_float8) [TensorVariable(), TensorVariable(), ConstantVariable(dtype), TensorVariable()] {}
E
E from user code:
E File "/home/drisspg/meta/float8_experimental/float8_experimental/float8_linear.py", line 252, in forward
E x_fp8 = self.cast_x_to_float8(x, self.is_amax_initialized)
E File "/home/drisspg/meta/float8_experimental/float8_experimental/float8_linear.py", line 204, in cast_x_to_float8
E x_fp8 = Float8Tensor.to_float8(
E
E Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information
E
E
E You can suppress this exception and fall back to eager by setting:
E import torch._dynamo
E torch._dynamo.config.suppress_errors = True
../../miniconda3/envs/nightly/lib/python3.10/site-packages/torch/_dynamo/exc.py:176: Unsupported