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 ...
I've noticed while upgrading our code to v2 that we had big slowdowns within our test suites. And I narrowed it down to our numerous calls to isinstance checks. Turns out that isinstance for a ...