-
Notifications
You must be signed in to change notification settings - Fork 17
support reduce op with fast implementation #314
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
Conversation
0b0b569
to
187548d
Compare
187548d
to
11ed38f
Compare
@@ -131,16 +132,18 @@ def get_dtype(dtype: str) -> torch.dtype: | |||
return torch.bfloat16 | |||
elif dtype == "u8" or dtype == "ui8": | |||
return torch.uint8 | |||
elif dtype == "s8" or dtype == "i8": | |||
elif dtype in ["s8", "i8", "si8"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do si8
and si32
mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
signless -> i32/i8
signed -> si32/si8
unsigned -> ui32/ui8
11ed38f
to
9ef7f69
Compare
@@ -42,6 +42,19 @@ def ref_constant( | |||
) | |||
else: | |||
raise Exception("only support splat value now") | |||
elif isinstance(value, gc_mlir._mlir_libs._mlir.ir.IntegerAttr): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gc_mlir._mlir_libs._mlir.ir
-> ir
9ef7f69
to
92be909
Compare
92be909
to
b3cbfaa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Try to resolve #175