Skip to content

How do we determine if an operator is registered in the "derivatives.yaml" file or the "op_plugin_functions.yaml" file, or both ? #2

@PriscillaJCorn

Description

@PriscillaJCorn

Hi guys,
I have observed that some of the custom operators are only registered in the "derivatives.yaml" file, such as the operator "npu_binary_cross_entropy_with_logits_backward"; Some operators are only registered in the ”op_plugin_functions.yaml“ file, such as the operator "npu_prompt_flash_attention". Moreover, some operators are registered in both, such as "npu_multi_head_attention". So, how to determine which file a custom operator should be registered in ?

From what I understand, the operator registered to the "derivatives.yaml" file, the backpropagation of the operator should be different from the official PyTorch, then it should be registered in both. Did I misunderstand something?

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