lint code #831
GitHub Actions / Black
failed
Oct 30, 2024 in 0s
2 errors
Black found 2 errors
Annotations
Check failure on line 73 in /home/runner/work/mlonmcu/mlonmcu/mlonmcu/flow/tvm/backend/tvmrt.py
github-actions / Black
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/flow/tvm/backend/tvmrt.py#L62-L73
def link_params(self):
value = self.config["link_params"]
return str2bool(value)
def get_tvmc_compile_args(self, out, dump=None):
- return super().get_tvmc_compile_args(out, dump=dump) + get_tvmrt_tvmc_args(system_lib=self.system_lib, link_params=self.link_params)
+ return super().get_tvmc_compile_args(out, dump=dump) + get_tvmrt_tvmc_args(
+ system_lib=self.system_lib, link_params=self.link_params
+ )
def generate(self) -> Tuple[dict, dict]:
artifacts, metrics = super().generate()
assert len(artifacts) == 1 and "default" in artifacts
artifacts = artifacts["default"]
github-actions / Black
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/session/postprocess/postprocesses.py#L669-L680
names = None
if self.groups:
encodings = []
if self.sequences:
names = []
- with pd.read_csv(log_artifact.path, sep=":", names=["pc", "rest"], chunksize=2**22) as reader: # TODO: expose chunksize
+ with pd.read_csv(
+ log_artifact.path, sep=":", names=["pc", "rest"], chunksize=2**22
+ ) as reader: # TODO: expose chunksize
for chunk in reader:
df = transform_df(chunk)
encodings_, names_ = process_df(df)
# input(">")
Loading