Skip to content

Commit

Permalink
fix quant json output
Browse files Browse the repository at this point in the history
  • Loading branch information
guodongliang committed Jan 6, 2025
1 parent 10686c5 commit 28d58a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Nncase.Quantization/Quantization/Quantizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,7 @@ public async Task RunAsync(RunPassContext options)

var quantSchemeString = JsonConvert.SerializeObject(quantScheme, Newtonsoft.Json.Formatting.Indented);
_quantizeOptions.QuantSchemeInnerCheck = quantSchemeString;
if (Path.Exists(DumpScope.Current.Directory))
{
File.WriteAllText(Path.Join(DumpScope.Current.Directory, "..", "..", "QuantScheme.json"), quantSchemeString);
}
File.WriteAllText("./tests_output/QuantScheme.json", quantSchemeString);

Check warning on line 281 in src/Nncase.Quantization/Quantization/Quantizer.cs

View workflow job for this annotation

GitHub Actions / build-x86_64-linux

Check warning on line 281 in src/Nncase.Quantization/Quantization/Quantizer.cs

View workflow job for this annotation

GitHub Actions / build-aarch64-macos

Check warning on line 281 in src/Nncase.Quantization/Quantization/Quantizer.cs

View workflow job for this annotation

GitHub Actions / build-x86_64-windows

Check warning on line 281 in src/Nncase.Quantization/Quantization/Quantizer.cs

View workflow job for this annotation

GitHub Actions / build-x86_64-linux

}

if (_quantizeOptions.DumpQuantError)
Expand Down

0 comments on commit 28d58a6

Please sign in to comment.