add support for operations: reduceMean, add, mul, div, sigmoid
Validate Operations / validate-operations (push) Failing after 51m52s
Validate Operations / validate-operations (push) Failing after 51m52s
This commit is contained in:
@@ -39,6 +39,12 @@ def spatToPimVVMul : Pat<
|
||||
(NativeCodeCall<"onnx_mlir::getBestOutputTensorFromOperandsOrAllocate($_builder, $0.getDefiningOp())"> $srcOpRes))
|
||||
>;
|
||||
|
||||
def spatToPimVAvg : Pat<
|
||||
(SpatVAvgOp:$srcOpRes $input),
|
||||
(PimVAvgOp $input,
|
||||
(NativeCodeCall<"onnx_mlir::getBestOutputTensorFromOperandsOrAllocate($_builder, $0.getDefiningOp())"> $srcOpRes))
|
||||
>;
|
||||
|
||||
def spatToPimVVMax : Pat<
|
||||
(SpatVMaxOp:$srcOpRes $a, $b),
|
||||
(PimVVMaxOp $a, $b,
|
||||
@@ -51,4 +57,10 @@ def spatToPimVRelu : Pat<
|
||||
(NativeCodeCall<"onnx_mlir::getBestOutputTensorFromOperandsOrAllocate($_builder, $0.getDefiningOp())"> $srcOpRes))
|
||||
>;
|
||||
|
||||
def spatToPimVSigm : Pat<
|
||||
(SpatSigmoidOp:$srcOpRes $input),
|
||||
(PimVSigmOp $input,
|
||||
(NativeCodeCall<"onnx_mlir::getBestOutputTensorFromOperandsOrAllocate($_builder, $0.getDefiningOp())"> $srcOpRes))
|
||||
>;
|
||||
|
||||
#endif // SPATIAL_TO_PIM
|
||||
|
||||
Reference in New Issue
Block a user