Skip to content
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
@drisspg

Description

@drisspg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CompileIssues related with subclass compilation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions