Commit d737c0e
committed
Fix has not attribute
Fix:
fms_mo/quant/quantizers.py:3898: error: Item "None" of "Parameter | None" has no attribute "fill_" [union-attr]
fms_mo/quant/quantizers.py:3963: error: Item "float" of "Any | float" has no attribute "round" [union-attr]
fms_mo/quant/quantizers.py:5392: error: Module has no attribute "float8_e5m2G" [attr-defined]
fms_mo/custom_ext_kernels/utils.py:77: error: Module has no attribute "custom_op" [attr-defined]
fms_mo/custom_ext_kernels/utils.py:79: error: Module has no attribute "register_kernel" [attr-defined]
fms_mo/custom_ext_kernels/utils.py:80: error: Module has no attribute "register_fake" [attr-defined]
fms_mo/utils/torchscript_utils.py:182: error: Item "None" of "Node | None" has no attribute "inputs" [union-attr]
fms_mo/utils/torchscript_utils.py:184: error: Item "None" of "Node | None" has no attribute "outputs" [union-attr]
fms_mo/utils/torchscript_utils.py:204: error: "Node" has no attribute "name" [attr-defined]
fms_mo/utils/torchscript_utils.py:204: error: "Node" has no attribute "obj" [attr-defined]
fms_mo/utils/torchscript_utils.py:205: error: "Node" has no attribute "name" [attr-defined]
fms_mo/utils/torchscript_utils.py:207: error: "Node" has no attribute "name" [attr-defined]
fms_mo/utils/torchscript_utils.py:209: error: "Node" has no attribute "name" [attr-defined]
fms_mo/utils/torchscript_utils.py:212: error: "Node" has no attribute "Op" [attr-defined]
fms_mo/utils/torchscript_utils.py:214: error: "Node" has no attribute "unpackIdx" [attr-defined]
fms_mo/utils/torchscript_utils.py:216: error: "Node" has no attribute "lineno" [attr-defined]
fms_mo/utils/torchscript_utils.py:217: error: "Node" has no attribute "operator" [attr-defined]
fms_mo/utils/torchscript_utils.py:219: error: "Node" has no attribute "parents" [attr-defined]
fms_mo/utils/torchscript_utils.py:220: error: "Node" has no attribute "parents_ptr" [attr-defined]
fms_mo/utils/torchscript_utils.py:221: error: "Node" has no attribute "scope" [attr-defined]
fms_mo/utils/torchscript_utils.py:222: error: "Node" has no attribute "modname" [attr-defined]
fms_mo/utils/torchscript_utils.py:223: error: "Node" has no attribute "children" [attr-defined]
fms_mo/utils/torchscript_utils.py:224: error: "Node" has no attribute "children_ptr" [attr-defined]
fms_mo/utils/torchscript_utils.py:225: error: "Node" has no attribute "TSparents" [attr-defined]
fms_mo/utils/torchscript_utils.py:226: error: "Node" has no attribute "TSoutputs" [attr-defined]
fms_mo/utils/torchscript_utils.py:228: error: "Node" has no attribute "name" [attr-defined]
fms_mo/calib.py:485: error: Item "None" of "FrameType | None" has no attribute "f_code" [union-attr]
fms_mo/quant/ptq.py:2626: error: Item "None" of "Tensor | None" has no attribute "zero_" [union-attr]
fms_mo/quant/ptq.py:2627: error: Item "None" of "Tensor | None" has no attribute "fill_" [union-attr]
Signed-off-by: Martin Hickey <[email protected]>1 parent 7c0fc69 commit d737c0e
File tree
5 files changed
+41
-29
lines changed- fms_mo
- custom_ext_kernels
- quant
- utils
5 files changed
+41
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
| 486 | + | |
486 | 487 | | |
487 | 488 | | |
488 | 489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2623 | 2623 | | |
2624 | 2624 | | |
2625 | 2625 | | |
2626 | | - | |
2627 | | - | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
2628 | 2630 | | |
2629 | 2631 | | |
2630 | 2632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3895 | 3895 | | |
3896 | 3896 | | |
3897 | 3897 | | |
3898 | | - | |
| 3898 | + | |
| 3899 | + | |
3899 | 3900 | | |
3900 | 3901 | | |
3901 | 3902 | | |
| |||
3960 | 3961 | | |
3961 | 3962 | | |
3962 | 3963 | | |
3963 | | - | |
| 3964 | + | |
3964 | 3965 | | |
3965 | 3966 | | |
3966 | 3967 | | |
| |||
5389 | 5390 | | |
5390 | 5391 | | |
5391 | 5392 | | |
5392 | | - | |
| 5393 | + | |
5393 | 5394 | | |
5394 | 5395 | | |
5395 | 5396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
185 | 190 | | |
186 | 191 | | |
187 | 192 | | |
| |||
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
204 | | - | |
205 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
206 | 212 | | |
207 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
208 | 216 | | |
209 | | - | |
| 217 | + | |
210 | 218 | | |
211 | 219 | | |
212 | | - | |
| 220 | + | |
213 | 221 | | |
214 | | - | |
| 222 | + | |
215 | 223 | | |
216 | | - | |
217 | | - | |
| 224 | + | |
| 225 | + | |
218 | 226 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
227 | 235 | | |
228 | | - | |
| 236 | + | |
229 | 237 | | |
230 | 238 | | |
231 | 239 | | |
| |||
0 commit comments