seanshpark / netron

Visualizer for deep learning and machine learning models
https://www.lutzroeder.com/ai
MIT License
0 stars 0 forks source link

Trace dagger layout #2

Open seanshpark opened 6 months ago

seanshpark commented 6 months ago

Trace of objs

seanshpark commented 6 months ago
const buildLayerMatrix = (g) => {
diff --git a/source/dagre.js b/source/dagre.js
index af4ef917..9ec67bd0 100644
--- a/source/dagre.js
+++ b/source/dagre.js
@@ -75,6 +75,8 @@ dagre.layout = (nodes, edges, layout, state) => {
             const label = node.label;
             const rank = label.rank;
             if (rank !== undefined) {
+                const llstr = JSON.stringify(label);
+                console.log("!!!", node.v, llstr, rank, label.order);
                 layering[rank][label.order] = node.v;
             }
         }

-->

[4051:0522/222341.942405:INFO:CONSOLE(79)] "!!! 0 {"width":49.9599609375,"height":20,"rank":0,"order":0} 0 0", source: file:///tmp/.mount_NetronpOemS9/resources/app.asar/source/dagre.js (79)
[4051:0522/222341.942962:INFO:CONSOLE(79)] "!!! 1 {"width":91.328125,"height":98,"rank":4,"order":0} 4 0", source: file:///tmp/.mount_NetronpOemS9/resources/app.asar/source/dagre.js (79)
[4051:0522/222341.943283:INFO:CONSOLE(79)] "!!! 2 {"width":53.75,"height":20,"rank":6,"order":1} 6 1", source: file:///tmp/.mount_NetronpOemS9/resources/app.asar/source/dagre.js (79)
...
[4051:0522/222341.985443:INFO:CONSOLE(79)] "!!! 395 {"width":32.359375,"height":20,"rank":362,"order":16} 362 16", source: file:///tmp/.mount_NetronpOemS9/resources/app.asar/source/dagre.js (79)
[4051:0522/222341.985480:INFO:CONSOLE(79)] "!!! 396 {"width":32.359375,"height":20,"rank":362,"order":17} 362 17", source: file:///tmp/.mount_NetronpOemS9/resources/app.asar/source/dagre.js (79)
[4051:0522/222341.985528:INFO:CONSOLE(78)] "Uncaught (in promise) TypeError: Converting circular structure to JSON