提交 1059d5a7 编写于 作者: 叶剑武

Merge branch 'ui' into 'master'

Support scalar output shape

See merge request !1004
...@@ -111,7 +111,11 @@ Click node to see details at bottom of this page. ...@@ -111,7 +111,11 @@ Click node to see details at bottom of this page.
var output_shapes = []; var output_shapes = [];
if (typeof node["outputShape"] !== "undefined") { if (typeof node["outputShape"] !== "undefined") {
for (var j = 0; j < node["outputShape"].length; j++) { for (var j = 0; j < node["outputShape"].length; j++) {
var output_shape = node["outputShape"][j].dims.join(","); var output_shape = "";
if (typeof node["outputShape"][j].dims !== "undefined") {
console.log(node["outputShape"][j].dims);
output_shape = node["outputShape"][j].dims.join(",");
}
output_shapes.push(output_shape); output_shapes.push(output_shape);
} }
} }
...@@ -140,11 +144,15 @@ Click node to see details at bottom of this page. ...@@ -140,11 +144,15 @@ Click node to see details at bottom of this page.
" min=" + node["minval"] + " min=" + node["minval"] +
" max=" + node["maxval"]; " max=" + node["maxval"];
} }
var dims = "";
if (typeof node["dims"] != "undefined") {
dims = node["dims"].join(",");
}
tensor_data.push({ tensor_data.push({
"idx": tensor_data.length, "idx": tensor_data.length,
"name": node["name"], "name": node["name"],
"data_type": node["dataType"], "data_type": node["dataType"],
"dims": node["dims"].join(","), "dims": dims,
"quantize_info": quantize_info "quantize_info": quantize_info
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册