From 28d58a6a813b1c9c3bba765f030b89e091268b7d Mon Sep 17 00:00:00 2001 From: guodongliang Date: Mon, 6 Jan 2025 10:28:34 +0800 Subject: [PATCH] fix quant json output --- src/Nncase.Quantization/Quantization/Quantizer.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Nncase.Quantization/Quantization/Quantizer.cs b/src/Nncase.Quantization/Quantization/Quantizer.cs index 257ee001e..04a3ea48c 100644 --- a/src/Nncase.Quantization/Quantization/Quantizer.cs +++ b/src/Nncase.Quantization/Quantization/Quantizer.cs @@ -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); } if (_quantizeOptions.DumpQuantError)