Commit 4cf9a46
use _to_copy or _to_dim_order_copy in I64toI32 pass (pytorch#3968)
Summary:
Pull Request resolved: pytorch#3968
When converting an ExportedProgram to EdgeProgramManager via to_edge, _to_dim_order_copy or _to_copy will be used depending on the passed EdgeCompileConfig having _skip_dim_order set to true or false. For example:
```
compile_config=EdgeCompileConfig(
_check_ir_validity=False,
_skip_dim_order=True,
),
```
The newer _to_dim_order_copy op was added in D53747744/pytorch#1970.
Adding a param to the pass init to determine if we use the newer op or not.
Reviewed By: copyrightly
Differential Revision: D58395616
fbshipit-source-id: 8f5289f8ed62a5c3814ec32b91fb055a10944fdb1 parent 2d35b30 commit 4cf9a46
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
| |||
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
37 | | - | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| |||
62 | 70 | | |
63 | 71 | | |
64 | 72 | | |
65 | | - | |
| 73 | + | |
66 | 74 | | |
67 | 75 | | |
68 | 76 | | |
| |||
0 commit comments