Open t-vi opened 1 month ago
It fails for me with a compilation error. Here is the problematic bit:
...
float f3;
f3 = (float)(15LL);
...
float T18[1];
T18[0]
= T15[0]
- T17[0];
float T22[1];
T22[0]
= T18[0]
& f3;
Note that it tries to use bitwise and &
on float
types when doing T18[0] & f3
.
EDIT:
Take a look at the following part:
T0 = ... integer tensor ...
T19 = fd.ops.reciprocal(T14)
T20 = fd.ops.mul(T0, T19)
T21 = fd.ops.cast(T18, dtype=DataType.Int)
T22 = fd.ops.sub(T20, T21)
S23 = fd.define_scalar(15, dtype=DataType.Int)
T24 = fd.ops.bitwise_and(T22, S23)
The very last bitwise_and
involves a floating type T22
tensor, which is incorrect.
As of #2645 this fusion will now raise an error during fusion definition since a float is passed to a bitwise op.
Might not be much of a priority to get this fast, but sending a dequant op through Thunder crashes which it should not.
An error occurred while executing nvFuser FusionDefinition 1.
Traceback (most recent call last):