Commit 74a3b9c
[fx][acc_tracer] fix defaulted placeholder normalization (#73406)
Summary:
Pull Request resolved: #73406
Placeholder defaults are stored in `node.args`, during normalization we had dropped these. This diff passes the default args through the normalization transformation.
Test Plan:
Added tests to cover cases with optional inputs, test covers
* nothing passed to optional input
* `None` passed to optional input
* a tensor passed to optional input
Reviewed By: jfix71
Differential Revision: D34463493
fbshipit-source-id: f0c3a4083cb3dd4a69111a758561f0d2c0609787
(cherry picked from commit 7fb482c)1 parent bbdb758 commit 74a3b9c
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
407 | 408 | | |
408 | 409 | | |
409 | 410 | | |
410 | | - | |
| 411 | + | |
| 412 | + | |
411 | 413 | | |
412 | 414 | | |
413 | 415 | | |
| |||
0 commit comments