Commit 117aafd
Fix Type Error in Conditional Logic (#4294)
Summary:
The old logic was asking for `D`'s shape, which indicated that it should be a NumPy array. However, if you check the truth value of a NumPy array, you get an error.
The code is checking for the existence of `D`. The most direct way to handle that is to make sure that it isn't `None`.
Pull Request resolved: #4294
Reviewed By: junjieqi
Differential Revision: D72972114
Pulled By: mnorris11
fbshipit-source-id: 4ffabcccfd7418f625a379b8c3684d83bf57cac71 parent 928333c commit 117aafd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
| 1041 | + | |
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
| |||
0 commit comments