Lutz Roeder 3 lat temu
rodzic
commit
0a8a38c381
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      source/onnx.js

+ 1 - 1
source/onnx.js

@@ -1155,7 +1155,7 @@ onnx.Tensor = class {
                 }
                 return indentation + value.toString();
             default:
-                if (value.toString) {
+                if (value && value.toString) {
                     return indentation + value.toString();
                 }
                 return indentation + '(undefined)';