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

Replace vscaleextexp yaml with header #7408

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

RahulSundarMCW
Copy link

No description provided.

#define XNN_DEFINED_UKERNEL
#endif
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
XNN_UKERNEL_WITH_PARAMS(xnn_arch_x86_avx2, xnn_f32_vscaleextexp_ukernel__avx2_p5_u8, 8, float, struct xnn_f32_default_params, ((xnn_f32_vscaleextexp_ukernel_fn) NULL))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the cast of NULL for the init_params function? I know I did this for some unary ops, but I recently removed that as it's no longer necessary in that case.

@@ -273,7 +273,7 @@ tools/generate-raddstoreexpminusmax-test.py --spec test/f16-raddstoreexpminusmax
tools/generate-raddstoreexpminusmax-test.py --spec test/f32-raddstoreexpminusmax.yaml --output test/f32-raddstoreexpminusmax.cc &

### Tests for VScaleExtExp micro-kernels
tools/generate-vscaleextexp-test.py --spec test/f32-vscaleextexp.yaml --output test/f32-vscaleextexp.cc &
tools/generate-vscaleextexp-test.py --tester VScaleExtExpMicrokernelTester --ukernel f32-vscaleextexp --output test/f32-vscaleextexp.cc &
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's only one test using this, and now that it doesn't actually generate much code, we should just remove it. Let's also move the contents of vscaleextexp-microkernel-test.* to test/f32-vscaleextexp.cc as well.

@@ -4,7 +4,7 @@
// LICENSE file in the root directory of this source tree.
//
// Auto-generated file. Do not edit!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you remove the generator script, also remove this comment, because this file will not be generated code any more.

@RahulSundarMCW
Copy link
Author

Address the review comments and pushed the commit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this file

Copy link
Collaborator

@dsharlet dsharlet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed something missing for all these yaml -> header PRs: there are declarations of the microkernels that should be converted to use the header tables, e.g.:

#define DECLARE_F32_VSCALEEXPMINUSMAX_UKERNEL_FUNCTION(fn_name) \
.

This is important to help validate that the header tables are correct.

#endif

#if XNN_ARCH_X86 || XNN_ARCH_X86_64
XNN_UKERNEL_WITH_PARAMS(xnn_arch_x86_avx2, xnn_f32_vscaleextexp_ukernel__avx2_p5_u8, 8, float, struct xnn_f32_default_params, xnn_f32_vscaleextexp_ukernel_fn)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is xnn_f32_vscaleextexp_ukernel_fn here in the last parameter? I'd expect it to be NULL.

@RahulSundarMCW RahulSundarMCW force-pushed the vscaleextexp branch 3 times, most recently from ebaecb4 to cec6447 Compare November 18, 2024 10:34
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

Successfully merging this pull request may close these issues.

3 participants