Skip to content

Conversation

@copybara-service
Copy link
Contributor

@copybara-service copybara-service bot commented Sep 30, 2025

Add a new fingerprinting method for XNNPack weight cache.

Warning: this new fingerprinting method is currently experimental.

Every operation in XNNPack that uses the weight cache should implement a
corresponding fingerprinting function. The goal of that fingerprint is to check
whether the pre-computation (packing) that takes place for this op has changed
and if a previous weight cache can be reused directly or not.

The expected way for this to work is that a fingerprint function would assume a
predetermined set of constant inputs passed to the create function and would
then hash the resulting cache buffer.

The xnn_weights_cache_look_up_key has a new field that holds the fingerprint
identifier. It is set by kernel setup functions when they try to do cache
look-ups.

@copybara-service copybara-service bot force-pushed the test_809079455 branch 3 times, most recently from 12de7ae to f2a22c7 Compare October 2, 2025 14:23
@copybara-service copybara-service bot changed the title Add a new fingerprinting method for XNNPack delegate cache files. Add a new fingerprinting method for XNNPack weight cache. Oct 2, 2025
@copybara-service copybara-service bot force-pushed the test_809079455 branch 9 times, most recently from 2e89f5c to 9202c02 Compare October 6, 2025 16:21
@copybara-service copybara-service bot force-pushed the test_809079455 branch 7 times, most recently from 8f54a80 to f73507b Compare October 13, 2025 18:47
@copybara-service copybara-service bot force-pushed the test_809079455 branch 6 times, most recently from 45d9f62 to 75c2821 Compare October 27, 2025 15:25
Warning: this new fingerprinting method is currently experimental.

Every operation in XNNPack that uses the weight cache should implement a
corresponding fingerprinting function. The goal of that fingerprint is to check
whether the pre-computation (packing) that takes place for this op has changed
and if a previous weight cache can be reused directly or not.

The expected way for this to work is that a fingerprint function would assume a
predetermined set of constant inputs passed to the create function and would
then hash the resulting cache buffer.

The `xnn_weights_cache_look_up_key` has a new field that holds the fingerprint
identifier. It is set by kernel setup functions when they try to do cache
look-ups.

PiperOrigin-RevId: 809079455
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.

2 participants