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
One of the requirements for DotGeneralOp/ConvolutionOp is to support different element types for operands and results. E.g. for i8 inputs we might very well want to support i32 outputs.
At the moment, this is implemented in the StableHLO dialect via load-bearing result types, which makes type inference for these ops infeasible. That's kind of fine, but an alternative design would involve specifying the element type of the result via an attribute, which doesn't look like a big imposition on producers and would unlock type inference.
The text was updated successfully, but these errors were encountered:
fixes#359
The PR addresses the followings:
1. Spec of ConvolutionOp
2. Clarify the semantics of `precision_config` : The precision_config
parameter is a array of enums without any constraint on its size. Need
to resolve this.
- update: Added constraints on the parameter. With that the verifier is
in sync with this spec. Also added
#445 for further exploration.
4. Fix#360 (comment)
5. Avoid disabling clang formatting in StablehloOps.cpp.
6. Address #399
Only missing peice:
The constraint between output feature size and input batch size. Working
on getting a better understanding on this: Done
Type inference should be "revisit" as well because of #600.
In their current formulation, these ops cannot have shape functions
because their lhs/rhs element types can be different from their result
element type.
Perhaps in the future we will add the `preferred_element_type` attribute
to these ops (see #600), and then shape functions will be feasible to
write again, but today we have to disable them.
One of the requirements for DotGeneralOp/ConvolutionOp is to support different element types for operands and results. E.g. for
i8
inputs we might very well want to supporti32
outputs.At the moment, this is implemented in the StableHLO dialect via load-bearing result types, which makes type inference for these ops infeasible. That's kind of fine, but an alternative design would involve specifying the element type of the result via an attribute, which doesn't look like a big imposition on producers and would unlock type inference.
The text was updated successfully, but these errors were encountered: