[ET-VK][ops] Add bitwise_or / logical_or operators#20382
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20382
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 6dc4f6b with merge base 1227757 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This PR needs a
|
|
@claude review this code |
|
Claude finished @metascroy's task in 1m 9s —— View job Code Review: bitwise_or / logical_or
Reviewed against Correctness ✅
Nice improvements 👍
Minor observations (non-blocking)
|
Stack from ghstack (oldest at bottom):
Adds Vulkan support for
aten.bitwise_or.Tensorandaten.logical_or.default, mirroring the existingbitwise_and/logical_andimplementation. This is the first of two ops needed to collapse the Llama4-mini TISO en_US backbone export to a single Vulkan partition: the discrete-speech mask OR-s several bool tensors viabitwise_or, which previously had no Vulkan implementation and forced a CPU fallback that split the delegated graph.Implementation mirrors
bitwise_and: aX | Yuint8 shader variant inbinary_op_buffer.yaml/binary_op_texture.yaml, aDEFINE_BINARY_OP_FN(bitwise_or)dispatch withVK_REGISTER_OPfor bothaten.bitwise_or.Tensorandaten.logical_or.defaultinBinaryOp.cpp, andregister_bitwise_or/register_logical_orOpFeatures(bool inputs) inop_registry.py.This change was authored with Claude.
Differential Revision: D108457794