From 67d36474b002f75d92c8d8ddf322f507a07f31a6 Mon Sep 17 00:00:00 2001 From: Bjørn Christian Seime Date: Tue, 26 Sep 2023 14:05:51 +0200 Subject: Remove unused method --- .../src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'config-model') diff --git a/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java b/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java index 38dda3e29ff..39a8e16fad5 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java @@ -18,9 +18,6 @@ import java.io.InputStream; import java.io.OutputStream; import java.nio.charset.StandardCharsets; import java.util.Map; -import java.util.Optional; - -import static com.yahoo.yolean.Exceptions.uncheck; /** * Defers to 'vespa-analyze-onnx-model' to determine the output type given @@ -58,12 +55,6 @@ public class OnnxModelProbe { return outputType; } - public static Optional probeMemoryStats(ApplicationPackage app, Path modelPath) { - return Optional.of(app.getFile(memoryStatsPath(modelPath))) - .filter(ApplicationFile::exists) - .map(file -> MemoryStats.fromJson(uncheck(() -> jsonParser.readTree(file.createReader())))); - } - private static void writeMemoryStats(ApplicationPackage app, Path modelPath, MemoryStats memoryStats) throws IOException { String path = app.getFileReference(memoryStatsPath(modelPath)).getAbsolutePath(); IOUtils.writeFile(path, memoryStats.toJson().toPrettyString(), false); -- cgit v1.2.3