Explorar o código

Update onnx.js

Lutz Roeder %!s(int64=3) %!d(string=hai) anos
pai
achega
0a8a38c381
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)';