Commit 1c3c318
Guard against attribute error
Summary:
Sometime third-party packages can be imported but there is no desired attribute, for example:
```
from .operator import Operator
_ = tk.bf16_b200_gemm
^^^^^^^^^^^^^^^^^
AttributeError: module 'thunderkittens' has no attribute 'bf16_b200_gemm'
```
Handle attribute error in `try_import`
Differential Revision: D1026277311 parent ec05cc8 commit 1c3c318
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
0 commit comments