@@ -6,7 +6,7 @@ func.func @legalize_bconv2d(%arg0: tensor<256x32x32x1xi32>, %arg1: tensor<16x3x3
66 %0 = " lq.Bconv2d" (%arg0 , %arg1 , %arg2 , %arg3 , %arg4 ) {channels_in = 3 : i32 , dilation_height_factor = 1 : i32 , dilation_width_factor = 1 : i32 , fused_activation_function = " NONE" , padding = " VALID" , stride_height = 1 : i32 , stride_width = 1 : i32 } : (tensor <256 x32 x32 x1 xi32 >, tensor <16 x3 x3 x3 xf32 >, tensor <16 xf32 >, tensor <16 xf32 >, none ) -> tensor <256 x30 x30 x16 xf32 >
77 return %0 : tensor <256 x30 x30 x16 xf32 >
88
9- // CHECK: %0 = "tfl.custom"(%arg0, %arg1, %arg2, %arg3, %arg4) {custom_code = "LceBconv2d", custom_option = opaque<"lq", "0x6368616E6E656C735F696E0064696C6174696F6E5F6865696768745F666163746F720064696C6174696F6E5F77696474685F666163746F720066757365645F61637469766174696F6E5F66756E6374696F6E007061645F76616C7565730070616464696E67007374726964655F686569676874007374726964655F776964746800088277614C3329221508010803010100000101010404040404040404102401"> : tensor<160xi8 >} : (tensor<256x32x32x1xi32>, tensor<16x3x3x3xf32>, tensor<16xf32>, tensor<16xf32>, none) -> tensor<256x30x30x16xf32>
9+ // CHECK: %0 = "tfl.custom"(%arg0, %arg1, %arg2, %arg3, %arg4) {custom_code = "LceBconv2d", custom_option = #tfl<const_bytes : "0x6368616E6E656C735F696E0064696C6174696F6E5F6865696768745F666163746F720064696C6174696F6E5F77696474685F666163746F720066757365645F61637469766174696F6E5F66756E6374696F6E007061645F76616C7565730070616464696E67007374726964655F686569676874007374726964655F776964746800088277614C3329221508010803010100000101010404040404040404102401">} : (tensor<256x32x32x1xi32>, tensor<16x3x3x3xf32>, tensor<16xf32>, tensor<16xf32>, none) -> tensor<256x30x30x16xf32>
1010 // CHECK-NEXT: return %0
1111
1212 // TRANSLATE: %0 = "lq.Bconv2d"(%arg0, %arg1, %arg2, %arg3, %arg4) {channels_in = 3 : i32, dilation_height_factor = 1 : i32, dilation_width_factor = 1 : i32, fused_activation_function = "NONE", pad_values = 0 : i32, padding = "VALID", stride_height = 1 : i32, stride_width = 1 : i32} : (tensor<256x32x32x1xi32>, tensor<16x3x3x3xf32>, tensor<16xf32>, tensor<16xf32>, none) -> tensor<256x30x30x16xf32>
@@ -18,7 +18,7 @@ func.func @legalize_bmax_pool2d(%arg0: tensor<256x32x32x3xi32>) -> tensor<256x16
1818 %0 = " lq.BMaxPool2d" (%arg0 ) {filter_height = 2 : i32 , filter_width = 2 : i32 , padding = " SAME" , stride_height = 2 : i32 , stride_width = 2 : i32 } : (tensor <256 x32 x32 x3 xi32 >) -> tensor <256 x16 x16 x3 xi32 >
1919 return %0 : tensor <256 x16 x16 x3 xi32 >
2020
21- // CHECK: %0 = "tfl.custom"(%arg0) {custom_code = "LceBMaxPool2d", custom_option = opaque<"lq", "0x70616464696E67007374726964655F7769647468007374726964655F6865696768740066696C7465725F77696474680066696C7465725F68656967687400050F1D412D3B050105020200020204040404040A2401"> : tensor<84xi8 >} : (tensor<256x32x32x3xi32>) -> tensor<256x16x16x3xi32>
21+ // CHECK: %0 = "tfl.custom"(%arg0) {custom_code = "LceBMaxPool2d", custom_option = #tfl<const_bytes : "0x70616464696E67007374726964655F7769647468007374726964655F6865696768740066696C7465725F77696474680066696C7465725F68656967687400050F1D412D3B050105020200020204040404040A2401">} : (tensor<256x32x32x3xi32>) -> tensor<256x16x16x3xi32>
2222 // CHECK-NEXT: return %0
2323
2424 // TRANSLATE: %0 = "lq.BMaxPool2d"(%arg0) {filter_height = 2 : i32, filter_width = 2 : i32, padding = "SAME", stride_height = 2 : i32, stride_width = 2 : i32} : (tensor<256x32x32x3xi32>) -> tensor<256x16x16x3xi32>
@@ -30,7 +30,7 @@ func.func @legalize_quantize(%arg0: tensor<256x32x32x64xf32>) -> tensor<256x32x3
3030 %0 = " lq.Quantize" (%arg0 ) {} : (tensor <256 x32 x32 x64 xf32 >) -> tensor <256 x32 x32 x2 xi32 >
3131 return %0 : tensor <256 x32 x32 x2 xi32 >
3232
33- // CHECK: %0 = "tfl.custom"(%arg0) {custom_code = "LceQuantize", custom_option = opaque<"lq", "0x"> : tensor<0xi8 >} : (tensor<256x32x32x64xf32>) -> tensor<256x32x32x2xi32>
33+ // CHECK: %0 = "tfl.custom"(%arg0) {custom_code = "LceQuantize", custom_option = #tfl<const_bytes : "0x">} : (tensor<256x32x32x64xf32>) -> tensor<256x32x32x2xi32>
3434 // CHECK-NEXT: return %0
3535
3636 // TRANSLATE: %0 = "lq.Quantize"(%arg0) : (tensor<256x32x32x64xf32>) -> tensor<256x32x32x2xi32>
@@ -42,7 +42,7 @@ func.func @legalize_dequantize(%arg0: tensor<256x32x32x2xi32>) -> tensor<256x32x
4242 %0 = " lq.Dequantize" (%arg0 ) {} : (tensor <256 x32 x32 x2 xi32 >) -> tensor <256 x32 x32 x64 xf32 >
4343 return %0 : tensor <256 x32 x32 x64 xf32 >
4444
45- // CHECK: %0 = "tfl.custom"(%arg0) {custom_code = "LceDequantize", custom_option = opaque<"lq", "0x"> : tensor<0xi8 >} : (tensor<256x32x32x2xi32>) -> tensor<256x32x32x64xf32>
45+ // CHECK: %0 = "tfl.custom"(%arg0) {custom_code = "LceDequantize", custom_option = #tfl<const_bytes : "0x">} : (tensor<256x32x32x2xi32>) -> tensor<256x32x32x64xf32>
4646 // CHECK-NEXT: return %0
4747
4848 // TRANSLATE: %0 = "lq.Dequantize"(%arg0) : (tensor<256x32x32x2xi32>) -> tensor<256x32x32x64xf32>
0 commit comments