Commit 7dd0de3
Fix issue handling function with decorator (meta-pytorch#1111)
Summary:
Add support to handle function with decorators that hit validation errors.
**Root cause:** If the function contains decorators, the getabsfile will return the decorator function filepath.
**Fix**: Add an unwrap before we getabsfile, this could lead to right filepath.
Reviewed By: kiukchung
Differential Revision: D821325561 parent 456bde8 commit 7dd0de3
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
| |||
0 commit comments