You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a QT is slow, and the reason is how we handle boolean values.
In particular, when creating a QT, for simplicity, IntQuantTensor, everything is casted to a Tensor.
This casting is always skipped except for training and signed, which are normally bool and then casted to boolean torch.Tensor.
I tried dropping this, making sure that training and signed are only bool, and not boolean tensors, but it breaks export #1140
To fix this, we would need to drop QT during export (the PR used to exist and was re-adapted for something else, but it is trivial).
Describe the bug
Creating a QT is slow, and the reason is how we handle boolean values.
In particular, when creating a QT, for simplicity, IntQuantTensor, everything is casted to a Tensor.
This casting is always skipped except for
training
andsigned
, which are normally bool and then casted to boolean torch.Tensor.I tried dropping this, making sure that
training
andsigned
are only bool, and not boolean tensors, but it breaks export #1140To fix this, we would need to drop QT during export (the PR used to exist and was re-adapted for something else, but it is trivial).
Reproducibility
To Reproduce
The text was updated successfully, but these errors were encountered: