Browse Source

Update onnx.js

Lutz Roeder 3 years ago
parent
commit
0a8a38c381
1 changed files with 1 additions and 1 deletions
  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)';