Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PriscillaJCorn opened this issue Dec 4, 2023 · 0 comments

Comments

@PriscillaJCorn
Copy link

PriscillaJCorn commented Dec 4, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant