Ver código fonte

Update onnx.js

Lutz Roeder 3 anos atrás
pai
commit
0a8a38c381
1 arquivos alterados com 1 adições e 1 exclusões
  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)';