In Python, isinstance can be used with a single element or a tuple of elements. torch.jit.isinstance doesn't consider the case that we want to compare against a tuple of elements. Traceback (most ...
Conclusion The inconsistent behavior between using isinstance() and cast when dealing with the Any type seems to be a bug or, at the very least, an inconsistency in Mypy. If cast() accepts Any without ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results