Skip to content

[Aggressive Fusion] 'memref.cast' op operand types are cast incompatible  #12286

Closed

Description

@pzread

Sample 1:

iree-compile --output-format=vm-bytecode \
--iree-hal-target-backends=llvm-cpu \
--iree-input-type=tosa \
--iree-llvm-target-triple=aarch64-none-linux-android29 \
--iree-flow-enable-data-tiling \
--iree-flow-enable-fuse-padding-into-linalg-consumer-ops \
--iree-llvmcpu-enable-pad-consumer-fusion \
--iree-flow-enable-aggressive-fusion \
iree_cc69d69f-6d1f-4a1a-a31e-e021888d0d28_MobileBertSquad_fp32.mlir

Input MLIR: https://storage.googleapis.com/iree-jerry-test/debug-11980/iree_cc69d69f-6d1f-4a1a-a31e-e021888d0d28_MobileBertSquad_fp32.mlir

Error:

/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_cc69d69f-6d1f-4a1a-a31e-e021888d0d28_MobileBertSquad_fp32.tflite:0:0: error: 'memref.cast' op operand type
 'memref<8x64xf32, strided<[512, 1], offset: ?>, #hal.descriptor_type<storage_buffer>>' and result type 'memref<64x64xf32, strided<[512, 1], offset: ?>, #hal.descriptor_type<sto
rage_buffer>>' are cast incompatible                                                                                                                                             
/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_cc69d69f-6d1f-4a1a-a31e-e021888d0d28_MobileBertSquad_fp32.tflite:0:0: note: called from                   
/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_cc69d69f-6d1f-4a1a-a31e-e021888d0d28_MobileBertSquad_fp32.tflite:0:0: note: see current operation: %43 = "
memref.cast"(%42) : (memref<8x64xf32, strided<[512, 1], offset: ?>, #hal.descriptor_type<storage_buffer>>) -> memref<64x64xf32, strided<[512, 1], offset: ?>, #hal.descriptor_typ
e<storage_buffer>>                                                                                                                                                               
/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_cc69d69f-6d1f-4a1a-a31e-e021888d0d28_MobileBertSquad_fp32.tflite:0:0: error: failed to run translation of 
source executable to target executable for backend #hal.executable.target<"llvm-cpu", "embedded-elf-arm_64", {cpu = "generic", cpu_features = "", data_layout = "e-m:e-i8:8:32-i1
6:16:32-i64:64-i128:128-n32:64-S128", native_vector_size = 16 : index, target_triple = "aarch64-unknown-unknown-eabi-elf"}>                                                      
/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_cc69d69f-6d1f-4a1a-a31e-e021888d0d28_MobileBertSquad_fp32.tflite:0:0: note: called from                   
/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_cc69d69f-6d1f-4a1a-a31e-e021888d0d28_MobileBertSquad_fp32.tflite:0:0: note: see current operation:
...

Sample 2:

iree-compile --output-format=vm-bytecode \
--iree-hal-target-backends=llvm-cpu \
--iree-input-type=tosa \
--iree-llvm-target-triple=aarch64-none-linux-android29 \
--iree-flow-enable-data-tiling \
--iree-llvm-target-cpu-features=+dotprod \
--iree-flow-enable-fuse-padding-into-linalg-consumer-ops \
--iree-llvmcpu-enable-pad-consumer-fusion \
--iree-flow-enable-aggressive-fusion \
iree_e3997104-a3d2-46b4-9fbf-39069906d123_MobileBertSquad_int8.mlir

Input MLIR: https://storage.googleapis.com/iree-jerry-test/debug-11980/iree_e3997104-a3d2-46b4-9fbf-39069906d123_MobileBertSquad_int8.mlir

Error:

/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_e3997104-a3d2-46b4-9fbf-39069906d123_MobileBertSquad_int8.tflite:0:0: error: 'memref.cast' op operand type
 'memref<8x16xi8, strided<[512, 1], offset: ?>, #hal.descriptor_type<storage_buffer>>' and result type 'memref<64x64xi8, strided<[512, 1], offset: ?>, #hal.descriptor_type<stora
ge_buffer>>' are cast incompatible                                                                                                                                               
/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_e3997104-a3d2-46b4-9fbf-39069906d123_MobileBertSquad_int8.tflite:0:0: note: called from                   
/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_e3997104-a3d2-46b4-9fbf-39069906d123_MobileBertSquad_int8.tflite:0:0: note: see current operation: %76 = "
memref.cast"(%75) : (memref<8x16xi8, strided<[512, 1], offset: ?>, #hal.descriptor_type<storage_buffer>>) -> memref<64x64xi8, strided<[512, 1], offset: ?>, #hal.descriptor_type<
storage_buffer>>                                                                                                                                                                 
/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_e3997104-a3d2-46b4-9fbf-39069906d123_MobileBertSquad_int8.tflite:0:0: error: failed to run translation of 
source executable to target executable for backend #hal.executable.target<"llvm-cpu", "embedded-elf-arm_64", {cpu = "generic", cpu_features = "+dotprod", data_layout = "e-m:e-i8
:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", native_vector_size = 16 : index, target_triple = "aarch64-unknown-unknown-eabi-elf"}>
/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_e3997104-a3d2-46b4-9fbf-39069906d123_MobileBertSquad_int8.tflite:0:0: note: called from
/usr/local/google/home/cheyuw/iree/iree-build/e2e_test_artifacts/model_e3997104-a3d2-46b4-9fbf-39069906d123_MobileBertSquad_int8.tflite:0:0: note: see current operation: 
"hal.executable.variant"() ({
  "hal.executable.export"() ({
  }) {layout = #hal.pipeline.layout<push_constants = 0, sets = [<0, bindings = [<0, storage_buffer, ReadOnly>, <1, storage_buffer, ReadOnly>, <2, storage_buffer, ReadOnly>, <3, 
storage_buffer>, <4, storage_buffer>, <5, storage_buffer>]>]>, ordinal = 0 : index, sym_name = "main_dispatch_9_generic_384x512", translation_info = #iree_codegen.translation_in
fo<CPUDataTiling>} : () -> ()
...

Activity

  1. pzread commented on Feb 21, 2023

    @pzread
    ContributorAuthor

    It seems like the problem happens when tiling the dispatch with multi results + pack op

    Here is my guess (see the dump of TileAndDistributeToWorkgroups below):

    The dispatch contains 1 generic op + 1 pack op and returns 3 results:

    1. Pack op (from generic op result %16#0 to <48x512x8x1xf32>)
    2. Generic op result %16#0: <384x512xf32>
    3. Generic op result %16#1: <384x512xf32>

    After TileAndDistributeToWorkgroups on the pack op, the generic op is tiled to output <64x64xf32> because of its consumer, the pack op (from <64x64x32> to <8x64x8x1xf32>). But the store ops for the other 2 results are incorrectly written with the source tensor size <8x64xf32>:

    flow.dispatch.tensor.store %24#0, %7, offsets = [%arg0, %arg1], sizes = [%c8, %c64], strides = [1, 1] : tensor<?x?xf32> -> !flow.dispatch.tensor<writeonly:tensor<384x512xf32>>
    flow.dispatch.tensor.store %24#1, %8, offsets = [%arg0, %arg1], sizes = [%c8, %c64], strides = [1, 1] : tensor<?x?xf32> -> !flow.dispatch.tensor<writeonly:tensor<384x512xf32>>

    This results in the invalid casts later. For example:

    %23:2 = linalg.generic {...} -> (tensor<64x64xf32>, tensor<64x64xf32>)
    %cast_3 = tensor.cast %23#0 : tensor<64x64xf32> to tensor<?x?xf32>
    %cast_5 = tensor.cast %cast_3 : tensor<?x?xf32> to tensor<8x64xf32>
    flow.dispatch.tensor.store %cast_5, %7, offsets = [%arg0, %arg1], sizes = [8, 64], strides = [1, 1] : tensor<8x64xf32> -> !flow.dispatch.tensor<writeonly:tensor<384x512xf32>>

    Dump before/after TileAndDistributeToWorkgroups:

    // -----// IR Dump Before TileAndDistributeToWorkgroups (iree-codegen-tile-and-distribute-to-workgroups) //----- //
    hal.executable.variant public @embedded_elf_arm_64, target = <"llvm-cpu", "embedded-elf-arm_64", {cpu = "generic", cpu_features = "", data_layout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", native_vector_size = 16 : index, target_triple = "aarch64-unknown-unknown-eabi-elf"}> {
      hal.executable.export public @main_dispatch_8_generic_384x512 ordinal(0) layout(#hal.pipeline.layout<push_constants = 0, sets = [<0, bindings = [<0, storage_buffer, ReadOnly>, <1, storage_buffer, ReadOnly>, <2, storage_buffer, ReadOnly>, <3, storage_buffer>, <4, storage_buffer>, <5, storage_buffer>]>]>) attributes {translation_info = #iree_codegen.translation_info<CPUDataTiling>}
      builtin.module {
        func.func @main_dispatch_8_generic_384x512() {
          %c1339392 = arith.constant 1339392 : index
          %c0 = arith.constant 0 : index
          %c823296 = arith.constant 823296 : index
          %c825344 = arith.constant 825344 : index
          %c786432 = arith.constant 786432 : index
          %c1572864 = arith.constant 1572864 : index
          %c2359296 = arith.constant 2359296 : index
          %cst = arith.constant 0.000000e+00 : f32
          %0 = hal.interface.binding.subspan set(0) binding(0) type(storage_buffer) alignment(64) offset(%c1339392) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<1x2x512xf32>>
          %1 = hal.interface.binding.subspan set(0) binding(1) type(storage_buffer) alignment(64) offset(%c786432) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<384x512xf32>>
          %2 = hal.interface.binding.subspan set(0) binding(0) type(storage_buffer) alignment(64) offset(%c0) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<384x512xf32>>
          %3 = hal.interface.binding.subspan set(0) binding(2) type(storage_buffer) alignment(64) offset(%c0) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<384xi32>>
          %4 = hal.interface.binding.subspan set(0) binding(0) type(storage_buffer) alignment(64) offset(%c823296) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<512xf32>>
          %5 = hal.interface.binding.subspan set(0) binding(0) type(storage_buffer) alignment(64) offset(%c825344) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<512xf32>>
          %6 = hal.interface.binding.subspan set(0) binding(3) type(storage_buffer) alignment(64) offset(%c0) : !flow.dispatch.tensor<writeonly:tensor<48x512x8x1xf32>>
          %7 = hal.interface.binding.subspan set(0) binding(4) type(storage_buffer) alignment(64) offset(%c1572864) : !flow.dispatch.tensor<writeonly:tensor<384x512xf32>>
          %8 = hal.interface.binding.subspan set(0) binding(5) type(storage_buffer) alignment(64) offset(%c2359296) : !flow.dispatch.tensor<writeonly:tensor<384x512xf32>>
          %9 = flow.dispatch.tensor.load %0, offsets = [0, 0, 0], sizes = [1, 2, 512], strides = [1, 1, 1] : !flow.dispatch.tensor<readonly:tensor<1x2x512xf32>> -> tensor<1x2x512xf32>
          %10 = flow.dispatch.tensor.load %1, offsets = [0, 0], sizes = [384, 512], strides = [1, 1] : !flow.dispatch.tensor<readonly:tensor<384x512xf32>> -> tensor<384x512xf32>
          %11 = flow.dispatch.tensor.load %2, offsets = [0, 0], sizes = [384, 512], strides = [1, 1] : !flow.dispatch.tensor<readonly:tensor<384x512xf32>> -> tensor<384x512xf32>
          %12 = flow.dispatch.tensor.load %3, offsets = [0], sizes = [384], strides = [1] : !flow.dispatch.tensor<readonly:tensor<384xi32>> -> tensor<384xi32>
          %13 = flow.dispatch.tensor.load %4, offsets = [0], sizes = [512], strides = [1] : !flow.dispatch.tensor<readonly:tensor<512xf32>> -> tensor<512xf32>
          %14 = flow.dispatch.tensor.load %5, offsets = [0], sizes = [512], strides = [1] : !flow.dispatch.tensor<readonly:tensor<512xf32>> -> tensor<512xf32>
          %15 = tensor.empty() : tensor<384x512xf32>
          %16:2 = linalg.generic {indexing_maps = [affine_map<(d0, d1) -> (d0, d1)>, affine_map<(d0, d1) -> (d0, d1)>, affine_map<(d0, d1) -> (d0)>, affine_map<(d0, d1) -> (d1)>, affine_map<(d0, d1) -> (d1)>, affine_map<(d0, d1) -> (d0, d1)>, affine_map<(d0, d1) -> (d0, d1)>], iterator_types = ["parallel", "parallel"]} ins(%10, %11, %12, %13, %14 : tensor<384x512xf32>, tensor<384x512xf32>, tensor<384xi32>, tensor<512xf32>, tensor<512xf32>) outs(%15, %15 : tensor<384x512xf32>, tensor<384x512xf32>) {
          ^bb0(%in: f32, %in_0: f32, %in_1: i32, %in_2: f32, %in_3: f32, %out: f32, %out_4: f32):
            %19 = linalg.index 1 : index
            %20 = arith.addf %in, %cst : f32
            %21 = arith.index_cast %in_1 : i32 to index
            %extracted = tensor.extract %9[%c0, %21, %19] : tensor<1x2x512xf32>
            %22 = arith.addf %20, %in_0 : f32
            %23 = arith.addf %22, %extracted : f32
            %24 = arith.mulf %23, %in_2 : f32
            %25 = arith.addf %24, %in_3 : f32
            linalg.yield %23, %25 : f32, f32
          } -> (tensor<384x512xf32>, tensor<384x512xf32>)
          %17 = tensor.empty() : tensor<48x512x8x1xf32>
          %18 = iree_linalg_ext.pack {encoding = #iree_linalg_ext.encoding<MATMUL_F32F32F32_LHS>, lowering_config = #iree_codegen.lowering_config<tile_sizes = [[8, 64]]>} %16#0 inner_dims_pos = [0, 1] inner_tiles = [8, 1] into %17 : (tensor<384x512xf32> tensor<48x512x8x1xf32>) -> tensor<48x512x8x1xf32>
          flow.dispatch.tensor.store %18, %6, offsets = [0, 0, 0, 0], sizes = [48, 512, 8, 1], strides = [1, 1, 1, 1] : tensor<48x512x8x1xf32> -> !flow.dispatch.tensor<writeonly:tensor<48x512x8x1xf32>>
          flow.dispatch.tensor.store %16#0, %7, offsets = [0, 0], sizes = [384, 512], strides = [1, 1] : tensor<384x512xf32> -> !flow.dispatch.tensor<writeonly:tensor<384x512xf32>>
          flow.dispatch.tensor.store %16#1, %8, offsets = [0, 0], sizes = [384, 512], strides = [1, 1] : tensor<384x512xf32> -> !flow.dispatch.tensor<writeonly:tensor<384x512xf32>>
          return
        }
      }
    }
    
    // -----// IR Dump After TileAndDistributeToWorkgroups (iree-codegen-tile-and-distribute-to-workgroups) //----- //
    hal.executable.variant public @embedded_elf_arm_64, target = <"llvm-cpu", "embedded-elf-arm_64", {cpu = "generic", cpu_features = "", data_layout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", native_vector_size = 16 : index, target_triple = "aarch64-unknown-unknown-eabi-elf"}> {
      hal.executable.export public @main_dispatch_8_generic_384x512 ordinal(0) layout(#hal.pipeline.layout<push_constants = 0, sets = [<0, bindings = [<0, storage_buffer, ReadOnly>, <1, storage_buffer, ReadOnly>, <2, storage_buffer, ReadOnly>, <3, storage_buffer>, <4, storage_buffer>, <5, storage_buffer>]>]>) attributes {translation_info = #iree_codegen.translation_info<CPUDataTiling>}
      builtin.module {
        func.func @main_dispatch_8_generic_384x512() {
          %c8 = arith.constant 8 : index
          %c64 = arith.constant 64 : index
          %c512 = arith.constant 512 : index
          %c48 = arith.constant 48 : index
          %c1339392 = arith.constant 1339392 : index
          %c0 = arith.constant 0 : index
          %c823296 = arith.constant 823296 : index
          %c825344 = arith.constant 825344 : index
          %c786432 = arith.constant 786432 : index
          %c1572864 = arith.constant 1572864 : index
          %c2359296 = arith.constant 2359296 : index
          %cst = arith.constant 0.000000e+00 : f32
          %0 = hal.interface.binding.subspan set(0) binding(0) type(storage_buffer) alignment(64) offset(%c1339392) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<1x2x512xf32>>
          %1 = hal.interface.binding.subspan set(0) binding(1) type(storage_buffer) alignment(64) offset(%c786432) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<384x512xf32>>
          %2 = hal.interface.binding.subspan set(0) binding(0) type(storage_buffer) alignment(64) offset(%c0) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<384x512xf32>>
          %3 = hal.interface.binding.subspan set(0) binding(2) type(storage_buffer) alignment(64) offset(%c0) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<384xi32>>
          %4 = hal.interface.binding.subspan set(0) binding(0) type(storage_buffer) alignment(64) offset(%c823296) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<512xf32>>
          %5 = hal.interface.binding.subspan set(0) binding(0) type(storage_buffer) alignment(64) offset(%c825344) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<512xf32>>
          %6 = hal.interface.binding.subspan set(0) binding(3) type(storage_buffer) alignment(64) offset(%c0) : !flow.dispatch.tensor<writeonly:tensor<48x512x8x1xf32>>
          %7 = hal.interface.binding.subspan set(0) binding(4) type(storage_buffer) alignment(64) offset(%c1572864) : !flow.dispatch.tensor<writeonly:tensor<384x512xf32>>
          %8 = hal.interface.binding.subspan set(0) binding(5) type(storage_buffer) alignment(64) offset(%c2359296) : !flow.dispatch.tensor<writeonly:tensor<384x512xf32>>
          %9 = flow.dispatch.tensor.load %0, offsets = [0, 0, 0], sizes = [1, 2, 512], strides = [1, 1, 1] : !flow.dispatch.tensor<readonly:tensor<1x2x512xf32>> -> tensor<1x2x512xf32>
          %workgroup_id_x = hal.interface.workgroup.id[0] : index
          %workgroup_count_x = hal.interface.workgroup.count[0] : index
          %workgroup_id_y = hal.interface.workgroup.id[1] : index
          %workgroup_count_y = hal.interface.workgroup.count[1] : index
          %10 = affine.apply affine_map<()[s0] -> (s0 * 8)>()[%workgroup_id_y]
          %11 = affine.apply affine_map<()[s0] -> (s0 * 8)>()[%workgroup_count_y]
          scf.for %arg0 = %10 to %c48 step %11 {
            %12 = affine.apply affine_map<()[s0] -> (s0 * 64)>()[%workgroup_id_x]
            %13 = affine.apply affine_map<()[s0] -> (s0 * 64)>()[%workgroup_count_x]
            scf.for %arg1 = %12 to %c512 step %13 {
              %14 = affine.apply affine_map<(d0) -> (d0 * 8)>(%arg0)
              %15 = flow.dispatch.tensor.load %1, offsets = [%14, %arg1], sizes = [%c64, %c64], strides = [1, 1] : !flow.dispatch.tensor<readonly:tensor<384x512xf32>> -> tensor<?x?xf32>
              %16 = affine.apply affine_map<(d0) -> (d0 * 8)>(%arg0)
              %17 = flow.dispatch.tensor.load %2, offsets = [%16, %arg1], sizes = [%c64, %c64], strides = [1, 1] : !flow.dispatch.tensor<readonly:tensor<384x512xf32>> -> tensor<?x?xf32>
              %18 = affine.apply affine_map<(d0) -> (d0 * 8)>(%arg0)
              %19 = flow.dispatch.tensor.load %3, offsets = [%18], sizes = [%c64], strides = [1] : !flow.dispatch.tensor<readonly:tensor<384xi32>> -> tensor<?xi32>
              %20 = flow.dispatch.tensor.load %4, offsets = [%arg1], sizes = [%c64], strides = [1] : !flow.dispatch.tensor<readonly:tensor<512xf32>> -> tensor<?xf32>
              %21 = flow.dispatch.tensor.load %5, offsets = [%arg1], sizes = [%c64], strides = [1] : !flow.dispatch.tensor<readonly:tensor<512xf32>> -> tensor<?xf32>
              %22 = tensor.empty() : tensor<64x64xf32>
              %cast = tensor.cast %22 : tensor<64x64xf32> to tensor<?x?xf32>
              %23 = tensor.empty() : tensor<64x64xf32>
              %cast_0 = tensor.cast %23 : tensor<64x64xf32> to tensor<?x?xf32>
              %24:2 = linalg.generic {indexing_maps = [affine_map<(d0, d1) -> (d0, d1)>, affine_map<(d0, d1) -> (d0, d1)>, affine_map<(d0, d1) -> (d0)>, affine_map<(d0, d1) -> (d1)>, affine_map<(d0, d1) -> (d1)>, affine_map<(d0, d1) -> (d0, d1)>, affine_map<(d0, d1) -> (d0, d1)>], iterator_types = ["parallel", "parallel"]} ins(%15, %17, %19, %20, %21 : tensor<?x?xf32>, tensor<?x?xf32>, tensor<?xi32>, tensor<?xf32>, tensor<?xf32>) outs(%cast, %cast_0 : tensor<?x?xf32>, tensor<?x?xf32>) {
              ^bb0(%in: f32, %in_2: f32, %in_3: i32, %in_4: f32, %in_5: f32, %out: f32, %out_6: f32):
                %27 = linalg.index 1 : index
                %28 = affine.apply affine_map<(d0, d1) -> (d0 + d1)>(%27, %arg1)
                %29 = arith.addf %in, %cst : f32
                %30 = arith.index_cast %in_3 : i32 to index
                %extracted = tensor.extract %9[%c0, %30, %28] : tensor<1x2x512xf32>
                %31 = arith.addf %29, %in_2 : f32
                %32 = arith.addf %31, %extracted : f32
                %33 = arith.mulf %32, %in_4 : f32
                %34 = arith.addf %33, %in_5 : f32
                linalg.yield %32, %34 : f32, f32
              } -> (tensor<?x?xf32>, tensor<?x?xf32>)
              %25 = tensor.empty() : tensor<8x64x8x1xf32>
              %26 = iree_linalg_ext.pack {encoding = #iree_linalg_ext.encoding<MATMUL_F32F32F32_LHS>, lowering_config = #iree_codegen.lowering_config<tile_sizes = [[8, 64]]>} %24#0 inner_dims_pos = [0, 1] inner_tiles = [8, 1] into %25 : (tensor<?x?xf32> tensor<8x64x8x1xf32>) -> tensor<8x64x8x1xf32>
              %cast_1 = tensor.cast %26 : tensor<8x64x8x1xf32> to tensor<?x?x8x1xf32>
              flow.dispatch.tensor.store %cast_1, %6, offsets = [%arg0, %arg1, 0, 0], sizes = [%c8, %c64, 8, 1], strides = [1, 1, 1, 1] : tensor<?x?x8x1xf32> -> !flow.dispatch.tensor<writeonly:tensor<48x512x8x1xf32>>
              flow.dispatch.tensor.store %24#0, %7, offsets = [%arg0, %arg1], sizes = [%c8, %c64], strides = [1, 1] : tensor<?x?xf32> -> !flow.dispatch.tensor<writeonly:tensor<384x512xf32>>
              flow.dispatch.tensor.store %24#1, %8, offsets = [%arg0, %arg1], sizes = [%c8, %c64], strides = [1, 1] : tensor<?x?xf32> -> !flow.dispatch.tensor<writeonly:tensor<384x512xf32>>
            }
          }
          return
        }
      }
    }
  2. pzread commented on Feb 21, 2023

    @pzread
    ContributorAuthor

    @hanhanW can you take a look and see if we can support multi result + pack op?

  3. hanhanW commented on Feb 21, 2023

    @hanhanW
    Contributor

    Sure, I'll take a look at this, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions