mehrdadh commented on code in PR #13271:
URL: https://github.com/apache/tvm/pull/13271#discussion_r1014478593
##########
tests/python/contrib/test_hexagon/metaschedule_e2e/export_models.py:
##########
@@ -34,14 +37,16 @@ def export_resnet50_fp16():
mod, params = relay.frontend.from_pytorch(script_module, input_shapes)
mod = relay.transform.ToMixedPrecision("float16")(mod)
- with open("resnet50_fp16.json", "w") as fo:
- fo.write(tvm.ir.save_json(mod))
+ with open("resnet50_fp16.json", "w") as file:
+ file.write(tvm.ir.save_json(mod))
- with open("resnet50_fp16.params", "wb") as fo:
- fo.write(relay.save_param_dict(params))
+ with open("resnet50_fp16.params", "wb") as file:
+ file.write(relay.save_param_dict(params))
Review Comment:
If it is bothering let's disable it at the TVM level. Otherwise we're gonna
have bunch of `pylint_disable` tags which kind of defeats the purpose of pylint.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]