Commit 2da9794
committed
Use default FakeTensorMode when calling module without input
Before, _ExportPassBase set self.tracer.fake_tensor_mode to
a default value, but didn't use it when tracing. This caused
operators that only have fake tensor implementations to
crash.
Signed-off-by: Erik Lundell <[email protected]>
Change-Id: I8d7ef0cc841b0e46cd04ea4ed941b761798a76d21 parent d968e47 commit 2da9794
2 files changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
596 | | - | |
597 | | - | |
| 597 | + | |
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
602 | 601 | | |
603 | | - | |
| 602 | + | |
| 603 | + | |
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
| |||
0 commit comments