Commit 1eb9546
authored
[pytorch#9971] Gracefully error out in ETDump for set_debug_buffer (pytorch#10130)
## Summary
Following pytorch#9971
Start with a relatively simple method.
Update set_debug_bugffer. Use ET_CHECK_OR_RETURN_ERROR instead.
If unable to pass error, update the return type as Result
Note: Not sure if InvalidArgument is a good one ( maybe memory not
allocated?). Please feel free to comment.
##Test
test/run_oss_cpp_tests.sh
@Gasoonjia @zhenyan-zhang-meta Thanks1 parent d711ec1 commit 1eb9546
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
| 539 | + | |
540 | 540 | | |
541 | | - | |
| 541 | + | |
542 | 542 | | |
| 543 | + | |
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
547 | 548 | | |
| 549 | + | |
548 | 550 | | |
549 | 551 | | |
550 | 552 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
0 commit comments