-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tags: v2.1] Error behavior for 'res_out = flag_gems.native_dropout(inp, p, True)' #267
Comments
This is due to the data type of operand p. Triton kernel can't accept p as numpy.float32 directly. Annotate the code "p = np.float32(p)" and this error disappears. |
Get it. Tanhks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
位置:
FlagGems/tests/test_special_ops.py::test_accuracy_dropout
FlagGems/src/flag_gems/ops/dropout.py
现象:
mask0 = r0 > p
E ^
E IncompatibleTypeErrorImpl('invalid operands of type pointer and triton.language.fp32')
The text was updated successfully, but these errors were encountered: