Closed ngoyal2707 closed 2 years ago
What graph break do you see? which pattern are you talking about? Can you run torchdynamo.explain() and add the break reasons to the issue?
sorry didn't mean break graph, basically above code gives following error with dynamo :
return model(input)
File "examples/DALLE2/scripts/test_dynamo.py", line 18, in forward
x = all_but_last(x)
Traceback (most recent call last):
File "examples/DALLE2/scripts/test_dynamo.py", line 31, in <module>
toy_example(model, x)
File "/shared/home/namangoyal/src/torchdynamo/torchdynamo/eval_frame.py", line 163, in _fn
return fn(*args, **kwargs)
File "examples/DALLE2/scripts/test_dynamo.py", line 23, in toy_example
@torchdynamo.optimize('eager')
File "/shared/home/namangoyal/miniconda3/envs/ldm_ait/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1274, in _call_impl
return forward_call(*input, **kwargs)
File "examples/DALLE2/scripts/test_dynamo.py", line 16, in forward
def forward(self, x):
TypeError: 'tuple' object is not callable
but works without it
gotcha :) thanks - can you port this issue to pytorch? Just realized its in dynamo, and this repo is effectively closed.
sure: closing this and opened https://github.com/pytorch/pytorch/issues/87121
@voznesenskym we're still using the dynamo issue tracker
@voznesenskym we're still using the dynamo issue tracker
My mistake. Apologies @ngoyal2707
lol alright, I closed the PT one
Sorry it took so long, did not get around to it till an hour ago or so
Forgot to close it, solved in pytorch. https://github.com/pytorch/pytorch/pull/87156
Its okay if the answer is, this is not supported but just wanted to raise it as fyi