File tree Expand file tree Collapse file tree 3 files changed +0
-21
lines changed
include/mlir/Dialect/Tosa/IR Expand file tree Collapse file tree 3 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -422,8 +422,6 @@ def Tosa_SigmoidOp : Tosa_ElemWiseUnaryOp<"sigmoid"> {
422
422
let results = (outs
423
423
Tosa_Tensor:$output
424
424
);
425
-
426
- let hasVerifier = 1;
427
425
}
428
426
429
427
//===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change @@ -1628,17 +1628,6 @@ LogicalResult WhileOp::inferReturnTypeComponents(
1628
1628
return success ();
1629
1629
}
1630
1630
1631
- LogicalResult SigmoidOp::verify () {
1632
- auto inputType = llvm::cast<ShapedType>(getInput ().getType ());
1633
- auto outputType = llvm::cast<ShapedType>(getOutput ().getType ());
1634
- auto result = verifyCompatibleShapes (inputType, outputType);
1635
- if (result.failed ()) {
1636
- return emitOpError () << " input type " << inputType << " and output type "
1637
- << outputType << " are not compatible" ;
1638
- }
1639
- return success ();
1640
- }
1641
-
1642
1631
std::optional<SmallVector<int64_t , 4 >> ApplyScaleOp::getShapeForUnroll () {
1643
1632
if (auto vt = llvm::dyn_cast<VectorType>(getType ()))
1644
1633
return llvm::to_vector<4 >(vt.getShape ());
Original file line number Diff line number Diff line change @@ -179,14 +179,6 @@ func.func @test_sigmoid_type_mismatch(%arg0: tensor<13x21x3xf32>) -> tensor<13x2
179
179
180
180
// -----
181
181
182
- func.func @test_sigmoid (%arg0: tensor <13 x21 x3 xf32 >) -> tensor <13 x21 x4 xf32 > {
183
- // expected-error@+1 {{'tosa.sigmoid' op input type 'tensor<13x21x3xf32>' and output type 'tensor<13x21x4xf32>' are not compatible}}
184
- %0 = " tosa.sigmoid" (%arg0 ) : (tensor <13 x21 x3 xf32 >) -> tensor <13 x21 x4 xf32 >
185
- return %0 : tensor <13 x21 x4 xf32 >
186
- }
187
-
188
- // -----
189
-
190
182
func.func @test_transpose_non_const (%arg0: tensor <13 x21 x3 xf32 >, %arg1: tensor <3 xi32 >) -> tensor <3 x13 x21 xf32 > {
191
183
// expected-error@+1 {{'tosa.transpose' op perms of transpose is not constant}}
192
184
%0 = " tosa.transpose" (%arg0 , %arg1 ) : (tensor <13 x21 x3 xf32 >, tensor <3 xi32 >) -> tensor <3 x13 x21 xf32 >
You can’t perform that action at this time.
0 commit comments