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

RuntimeError: Detected that you are using FX to torch.jit.trace a dynamo-optimized function. This is not supported at the moment. #150

Open
arghavan-kpm opened this issue Jul 25, 2024 · 0 comments

Comments

@arghavan-kpm
Copy link

Hi,

I'm calculating flops for open-sora model with backbone of STDiT and three inputs: x, timestamp, and y, like the following:

from fvcore.nn import FlopCountAnalysis
flops = FlopCountAnalysis(model, (x, torch.randint(0, 10, (x.shape[0],), device=x.device), model_args['y']))
flops.total()

I get this error: "RuntimeError: Detected that you are using FX to torch.jit.trace a dynamo-optimized function. This is not supported at the moment."
Could you please advise if there is any solution to resolve this? Thanks

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

No branches or pull requests

1 participant