Skip to content

StringAttribute has to be the first attribute in Kernel signature? #21

@ayzhuang

Description

@ayzhuang

Hi,
I write a kernel that takes a StringAttribute and an Attribute. StringAttribute has to be the first attribute in kernel signature to make it work. Is this behavior expected? You can reproduce this problem by changing MaxPool2D kernel signature order in backends/cpu/lib/ops/test/resnet_tensor_kernels.cc then running tests in backends/cpu/mlir_tests/resnet/max_pool.mlir.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    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