Lutz Roeder 1 rok temu
rodzic
commit
e39d942f3e
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      source/ncnn.js

+ 2 - 1
source/ncnn.js

@@ -229,7 +229,8 @@ ncnn.Node = class {
         this.chain = [];
         this.name = layer.name || '';
         const type = layer.type;
-        this.type = metadata.type(type);
+        this.type = { ...metadata.type(type) };
+        delete this.type.identifier;
         const attributeMetadata = this.type && this.type.attributes ? this.type.attributes : [];
         const attributes = layer.attributes;
         const inputs = layer.inputs || [];