Explorar o código

Update openvino.js

Lutz Roeder hai 3 semanas
pai
achega
65803dcaf7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      source/openvino.js

+ 1 - 1
source/openvino.js

@@ -270,7 +270,7 @@ openvino.Graph = class {
             }
             if (!values.has(name)) {
                 values.set(name, new openvino.Value(name, type, tensor));
-            } else if (type && !type.equals(values.get(name).type)) {
+            } else if (name === id && type && !type.equals(values.get(name).type)) {
                 throw new openvino.Error(`Duplicate value '${name}'.`);
             }
             return values.get(name);