Skip to content

Commit

Permalink
Apply code-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xhuohai authored and github-actions[bot] committed Dec 19, 2023
1 parent 316c02d commit 65e6bc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Nncase.Evaluator/Tensors/Where.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ public IRType Visit(DistributedType cond, DistributedType x, DistributedType y,
{
switch (cond.NdSBP[i], x.NdSBP[i], y.NdSBP[i])
{
case (SBPSplit { Axis: int ic }, SBPSplit { Axis: int ix }, SBPSplit { Axis: int iy }):
case (SBPSplit { Axis: int ic }, SBPSplit { Axis: int }, SBPSplit { Axis: int }):
ndsbp[i] = SBP.S(ic);
break;

Check warning on line 98 in src/Nncase.Evaluator/Tensors/Where.cs

View check run for this annotation

Codecov / codecov/patch

src/Nncase.Evaluator/Tensors/Where.cs#L97-L98

Added lines #L97 - L98 were not covered by tests
case (SBPSplit { Axis: int ic }, SBPBroadCast, SBPSplit { Axis: int iy }):
case (SBPSplit { Axis: int ic }, SBPBroadCast, SBPSplit { Axis: int }):
ndsbp[i] = SBP.S(ic);
break;

Check warning on line 101 in src/Nncase.Evaluator/Tensors/Where.cs

View check run for this annotation

Codecov / codecov/patch

src/Nncase.Evaluator/Tensors/Where.cs#L100-L101

Added lines #L100 - L101 were not covered by tests
case (SBPSplit { Axis: int ic }, SBPSplit { Axis: int ix }, SBPBroadCast):
case (SBPSplit { Axis: int ic }, SBPSplit { Axis: int }, SBPBroadCast):
ndsbp[i] = SBP.S(ic);
break;

Check warning on line 104 in src/Nncase.Evaluator/Tensors/Where.cs

View check run for this annotation

Codecov / codecov/patch

src/Nncase.Evaluator/Tensors/Where.cs#L103-L104

Added lines #L103 - L104 were not covered by tests
case (SBPSplit { Axis: int ic }, SBPBroadCast, SBPBroadCast):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def run(self, model_file: Union[List[str], str]):
actual = self.run_evaluator(compiler, tmp_dir)
else:
actual = self.run_inference(
compiler, k_target, k_mode=="ptq" and v_mode['enabled'], tmp_dir)
compiler, k_target, k_mode == "ptq" and v_mode['enabled'], tmp_dir)
target_dir = os.path.join(self.case_dir, stage, k_target)
os.makedirs(target_dir, exist_ok=True)
mode_dir = os.path.join(target_dir, k_mode)
Expand Down

0 comments on commit 65e6bc9

Please sign in to comment.