Skip to content

Generalize Init Params fn in operator create #8373

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcr229
Copy link
Contributor

@mcr229 mcr229 commented May 3, 2025

in create_fully_connected_nc( we take in xnn_init_scale_params_fn to initialize bias and scales. Like in the pack_weights_and_bias functions, i want to generalize these to just init_extra_data_fn, where the type of the data is now void* instead of float, and we pass in the extra datatype's size. this cleans up our call to pack_weights_and_biases by a lot, and i think improves some of the readability.

cc. @alankelly @dsharletg

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.

1 participant