From f6195354dd401eb340774b65aba89bb6bf377b7b Mon Sep 17 00:00:00 2001 From: Stanislav Ponkrashov Date: Thu, 9 Feb 2023 02:11:34 +0000 Subject: [PATCH] Fix bug with string representation of a tensor --- media/CircleGraph/view-sidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/CircleGraph/view-sidebar.js b/media/CircleGraph/view-sidebar.js index 7e440961..53eb9695 100644 --- a/media/CircleGraph/view-sidebar.js +++ b/media/CircleGraph/view-sidebar.js @@ -1115,7 +1115,7 @@ sidebar.ArgumentView = class { try { const state = initializer.state; if (!state && __enableVisualTensorView === "true") { - this._element.appendChild(new sidebar.VisualTensorView(this._host, JSON.parse(initializer.toString()))._element); + this._element.appendChild(new sidebar.VisualTensorView(this._host, initializer._decode(initializer._context(), 0))._element); } if ( state === null &&