Commit dbbe9cb
[ET-VK] Make libtorch optional in custom op test binaries
Add `include_torch` parameter (default False) to
`define_custom_op_test_binary()`. None of the custom op test binaries
directly include torch/ATen/c10 headers, so libtorch was unnecessary
baggage. Dropping it reduces the q4gsw_linear_adreno binary from ~1 GB
to 74 MB.
Differential Revision: [D104456804](https://our.internmc.facebook.com/intern/diff/D104456804/)
ghstack-source-id: 379498992
Pull Request resolved: #194021 parent 93b764e commit dbbe9cb
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
0 commit comments