File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,17 @@ func.func @pad_noop(%arg0: tensor<?x?xf32>) -> tensor<?x?xf32> {
217217
218218// -----
219219
220+ // CHECK-LABEL: @pad_noop_padding_mismatch_nofold
221+ func.func @pad_noop_padding_mismatch_nofold (%arg0: tensor <?x?xf32 >) -> tensor <?x?xf32 > {
222+ // CHECK: %[[PAD:.+]] = tosa.pad
223+ // CHECK: return %[[PAD]]
224+ %0 = " tosa.const" () { value = dense_resource<__elided__ > : tensor <2 x2 xi32 >} : () -> tensor <2 x2 xi32 >
225+ %1 = tosa.pad %arg0 , %0 : (tensor <?x?xf32 >, tensor <2 x2 xi32 >) -> tensor <?x?xf32 >
226+ return %1 : tensor <?x?xf32 >
227+ }
228+
229+ // -----
230+
220231// CHECK-LABEL: @pad_noop_type_mismatch_nofold
221232func.func @pad_noop_type_mismatch_nofold (%arg0: tensor <10 xf32 >) -> tensor <?xf32 > {
222233 // CHECK: %[[PAD:.+]] = tosa.pad
You can’t perform that action at this time.
0 commit comments