From eeadfbdd384bd0d3a446ad65ca3f483e056498e2 Mon Sep 17 00:00:00 2001 From: Kieran Date: Wed, 20 Nov 2024 16:23:56 +0100 Subject: [PATCH] Removed useless load function --- tf.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tf.js b/tf.js index 318cfb5..aeb0b7b 100644 --- a/tf.js +++ b/tf.js @@ -110,13 +110,6 @@ function loadWeights(dict){ maxApi.addHandler("set_weights", loadWeights); - -maxApi.addHandler("load", (dictId, key) => { - maxApi.getDict(dictId).then((dict) => { - loadWeights(dict[key]); - }); -}); - maxApi.addHandler("dump_weights", () => { getJson().then((json) => {maxApi.outlet("weights", json);}); })