Documentation
¶
Overview ¶
Package optypes defines OpType and lists the supported operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpTypeStrings ¶
func OpTypeStrings() []string
OpTypeStrings returns a slice of all String values of the enum
Types ¶
type OpType ¶
type OpType int
OpType is an enum of all generic operations that StableHLO can support -- not all are implemented yet.
const ( Invalid OpType = iota Parameter Constant Identity ReduceWindow RngBitGenerator BatchNormForInference BatchNormForTraining BatchNormGradient BitCount Abs Add ArgMinMax Bitcast BitwiseAnd BitwiseNot BitwiseOr BitwiseXor Broadcast BroadcastInDim Ceil Clz Complex Concatenate Conj ConvGeneralDilated ConvertDType Cos Div Dot DotGeneral DynamicSlice DynamicUpdateSlice Equal EqualTotalOrder Erf Exp Expm1 FFT Floor Gather GreaterOrEqual GreaterOrEqualTotalOrder GreaterThan GreaterThanTotalOrder Imag Iota IsFinite LessOrEqual LessOrEqualTotalOrder LessThan LessThanTotalOrder Log Log1p LogicalAnd LogicalNot LogicalOr LogicalXor Logistic Max Min Mul Neg NotEqual NotEqualTotalOrder Pad Pow Real ReduceBitwiseAnd ReduceBitwiseOr ReduceBitwiseXor ReduceLogicalAnd ReduceLogicalOr ReduceLogicalXor ReduceMax ReduceMin ReduceProduct ReduceSum Rem Reshape Reverse Round Rsqrt ScatterMax ScatterMin ScatterSum SelectAndScatterMax SelectAndScatterMin SelectAndScatterSum ShiftLeft ShiftRightArithmetic ShiftRightLogical Sign Sin Slice Sqrt Sub Tanh Transpose Where // Last should always be kept the last, it is used as a counter/marker for . Last )
func OpTypeString ¶
OpTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.