Commit b35ca2c
Better error message for misconfigured torchbench model (#114827)
```
File "/home/jansel/pytorch/./benchmarks/dynamo/torchbench.py", line 381, in load_model
benchmark_cls.name = model_name
AttributeError: 'NoneType' object has no attribute 'name
```
becomes
```
File "/home/jansel/pytorch/./benchmarks/dynamo/torchbench.py", line 381, in load_model
raise NotImplementedError(f"{model_name}.Model is None")
NotImplementedError: torchrec_dlrm.Model is None
```
Pull Request resolved: #114827
Approved by: https://github.com/xuzhao9, https://github.com/yanboliang1 parent 57e4820 commit b35ca2c
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
380 | 383 | | |
381 | 384 | | |
382 | 385 | | |
| |||
0 commit comments