SIGN IN SIGN UP

register `view`, `reshape` and `select`

Summary:
- We register `select`, `unsqueeze` and `view` in `vulkan_partitioner.py` in order to run vulkan_delegate test (Python e2e test). The latter two might be used to implement `bmm` and `addmm`, so I want to make sure they work.
- We register `reshape` in `View.cpp` explicitly. `reshape` is implemented through `_reshape_alias` (see [this](https://www.internalfb.com/code/fbsource/[a3dd6401f00d73f09bbdea63887fef54ea2c6dd2]/fbcode/caffe2/aten/src/ATen/native/native_functions.yaml?lines=4872-4881)) which is [decomposed as `view`](https://www.internalfb.com/code/fbsource/[bbb783ae1cff98b3b549da3edd845dde946d3da8]/xplat/caffe2/torch/_decomp/decompositions.py?lines=3669-3672). For codegen test, we still need to register the op, otherwise there is error
```
C++ exception with description "Exception raised from get_op_fn at xplat/executorch/backends/vulkan/runtime/graph/ops/OperatorRegistry.cpp:20: (it != table_.end()) is false! Could not find operator with name aten.reshape.default" thrown in the test body.
```

Reviewed By: yipjustin, liuk22

Differential Revision: D56454941

fbshipit-source-id: c83e6fb97d9cf9019cc6e786508f353a22236931
W
Wei Lu committed
b2a7243213f7becbb8840d820516b148a8340fae
Parent: 590cbce
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 4/25/2024, 12:46:59 AM