pytorch
d92bb036 - [Dynamo] Fix if condition on UnspecializedNNModuleVariable (#102583)

Commit
1 year ago
[Dynamo] Fix if condition on UnspecializedNNModuleVariable (#102583) Fixes #102315 The root cause is for ```UnspecializedNNModuleVariable``` which extends from ```UserDefinedObjectVariable```, if ```__bool__``` is missing, we should use ```__len__``` to infer a truth value. Pull Request resolved: https://github.com/pytorch/pytorch/pull/102583 Approved by: https://github.com/jansel
Author
Committer
Parents
Loading