Add a centralized TORCH_LIBRARY declaration for quantized and xnnpack ops.#36520
Add a centralized TORCH_LIBRARY declaration for quantized and xnnpack ops.#36520ezyang wants to merge 7 commits intogh/ezyang/721/basefrom
Conversation
… ops. Fixes #36510 Note that this introduces some schema string duplication, but I'll kill the dupes when I migrate the individual files to the new registration API. Signed-off-by: Edward Z. Yang <ezyang@fb.com> [ghstack-poisoned]
💊 Build failures summary and remediationsAs of commit 762b42b (more details on the Dr. CI page):
🕵️ 4 new failures recognized by patternsThe following build failures do not appear to be due to upstream breakages:
|
…and xnnpack ops." Fixes #36510 Note that this introduces some schema string duplication, but I'll kill the dupes when I migrate the individual files to the new registration API. Signed-off-by: Edward Z. Yang <ezyang@fb.com> [ghstack-poisoned]
…and xnnpack ops." Fixes #36510 Note that this introduces some schema string duplication, but I'll kill the dupes when I migrate the individual files to the new registration API. Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: [D21005369](https://our.internmc.facebook.com/intern/diff/D21005369) [ghstack-poisoned]
| static auto linear_op_context_class = register_packed_linear_op_context_class(); | ||
| static auto conv2d_op_context_class = register_packed_conv2d_op_context_class(); | ||
|
|
||
| // TODO: These should probably be in an xnnpack namespace? |
There was a problem hiding this comment.
thanks, I'll fix this
kimishpatel
left a comment
There was a problem hiding this comment.
XNNPACK stuff looks fine to me. Note that namespace change comment I made. So you probably want to remove that TODO.
… ops. Fixes pytorch#36510 Note that this introduces some schema string duplication, but I'll kill the dupes when I migrate the individual files to the new registration API. Signed-off-by: Edward Z. Yang <ezyang@fb.com> ghstack-source-id: 585057c Pull Request resolved: pytorch#36520
|
quantized op related changes looks good to me, although we have some in flight PRs but since the changes are small, it should be easy to merge |
…and xnnpack ops." Fixes #36510 Note that this introduces some schema string duplication, but I'll kill the dupes when I migrate the individual files to the new registration API. Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: [D21005369](https://our.internmc.facebook.com/intern/diff/D21005369) [ghstack-poisoned]
…and xnnpack ops." Fixes #36510 Note that this introduces some schema string duplication, but I'll kill the dupes when I migrate the individual files to the new registration API. Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: [D21005369](https://our.internmc.facebook.com/intern/diff/D21005369) [ghstack-poisoned]
…and xnnpack ops." Fixes #36510 Note that this introduces some schema string duplication, but I'll kill the dupes when I migrate the individual files to the new registration API. Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: [D21005369](https://our.internmc.facebook.com/intern/diff/D21005369) [ghstack-poisoned]
…and xnnpack ops." Fixes #36510 Note that this introduces some schema string duplication, but I'll kill the dupes when I migrate the individual files to the new registration API. Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: [D21005369](https://our.internmc.facebook.com/intern/diff/D21005369) [ghstack-poisoned]
This is a roll up of a bunch of small PRs for ease of landing. - Update reference to RegisterOperators in error message in Convolution. #36389 - Port Resize to use new registration API. #36390 - Port detach/detach to new registration API. #36512 - Add explicit schema for quantized conv/conv_prepack (fixes #36511). #36513 - Add a centralized TORCH_LIBRARY declaration for quantized and xnnpack ops (fixes #36510). #36520 - Functionalize qadd and register with new registration API. #36527 - Update quantized README for registering operators with new API. #36531 - Convert qbatch_norm to new operator registration API. #36534 - Convert qclamp to new operator registration API. #36535 - Functionalize qconcat and register with new registration API. #36536 Differential Revision: [D20964193](https://our.internmc.facebook.com/intern/diff/D20964193) [ghstack-poisoned]
This is a roll up of a bunch of small PRs for ease of landing. - Update reference to RegisterOperators in error message in Convolution. #36389 - Port Resize to use new registration API. #36390 - Port detach/detach to new registration API. #36512 - Add explicit schema for quantized conv/conv_prepack (fixes #36511). #36513 - Add a centralized TORCH_LIBRARY declaration for quantized and xnnpack ops (fixes #36510). #36520 - Functionalize qadd and register with new registration API. #36527 - Update quantized README for registering operators with new API. #36531 - Convert qbatch_norm to new operator registration API. #36534 - Convert qclamp to new operator registration API. #36535 - Functionalize qconcat and register with new registration API. #36536 Differential Revision: [D20964193](https://our.internmc.facebook.com/intern/diff/D20964193) [ghstack-poisoned]
This is a roll up of a bunch of small PRs for ease of landing. - Update reference to RegisterOperators in error message in Convolution. #36389 - Port Resize to use new registration API. #36390 - Port detach/detach to new registration API. #36512 - Add explicit schema for quantized conv/conv_prepack (fixes #36511). #36513 - Add a centralized TORCH_LIBRARY declaration for quantized and xnnpack ops (fixes #36510). #36520 - Functionalize qadd and register with new registration API. #36527 - Update quantized README for registering operators with new API. #36531 - Convert qbatch_norm to new operator registration API. #36534 - Convert qclamp to new operator registration API. #36535 - Functionalize qconcat and register with new registration API. #36536 ghstack-source-id: fe27bc1 Pull Request resolved: #36389
|
This will be rolled up into #36389 |
This is a roll up of a bunch of small PRs for ease of landing. - Update reference to RegisterOperators in error message in Convolution. #36389 - Port Resize to use new registration API. #36390 - Port detach/detach to new registration API. #36512 - Add explicit schema for quantized conv/conv_prepack (fixes #36511). #36513 - Add a centralized TORCH_LIBRARY declaration for quantized and xnnpack ops (fixes #36510). #36520 - Functionalize qadd and register with new registration API. #36527 - Update quantized README for registering operators with new API. #36531 - Convert qbatch_norm to new operator registration API. #36534 - Convert qclamp to new operator registration API. #36535 - Functionalize qconcat and register with new registration API. #36536 Differential Revision: [D20964193](https://our.internmc.facebook.com/intern/diff/D20964193) [ghstack-poisoned]
This is a roll up of a bunch of small PRs for ease of landing. - Update reference to RegisterOperators in error message in Convolution. #36389 - Port Resize to use new registration API. #36390 - Port detach/detach to new registration API. #36512 - Add explicit schema for quantized conv/conv_prepack (fixes #36511). #36513 - Add a centralized TORCH_LIBRARY declaration for quantized and xnnpack ops (fixes #36510). #36520 - Functionalize qadd and register with new registration API. #36527 - Update quantized README for registering operators with new API. #36531 - Convert qbatch_norm to new operator registration API. #36534 - Convert qclamp to new operator registration API. #36535 - Functionalize qconcat and register with new registration API. #36536 Differential Revision: [D20964193](https://our.internmc.facebook.com/intern/diff/D20964193) [ghstack-poisoned]
Stack from ghstack:
Fixes #36510
Note that this introduces some schema string duplication, but I'll
kill the dupes when I migrate the individual files to the new
registration API.
Signed-off-by: Edward Z. Yang ezyang@fb.com
Differential Revision: D21005369