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
Add BOOL variants to bitwise ops | fix(torchlib) (#907)
In torchbench we see errors like `[ONNXRuntimeError] : 10 :
INVALID_GRAPH : Load model from
bench_dynamo_onnx_model/attention_is_all_you_need_pytorch/model.onnx
failed:This is an invalid model. Type Error: Type 'tensor(bool)' of
input parameter (unsqueeze_1) of operator (BitwiseAnd) in node (n0__9)
is invalid.`
This change fixes them by registering the Boolean variants from the
exiting logical* implementations.
The reason for not creating new bitwise* variants is that the
implementation is exactly the same as the logical* ones, which are
covered by test cases. The bool bitwise* BOOL variants, if implemented
separately, besides completely identical logic, would require test case
duplication, which imo is not worth it.
0 commit comments