Browse Source

Update keras.js

Lutz Roeder 6 năm trước cách đây
mục cha
commit
79bfded426
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/keras.js

+ 1 - 2
src/keras.js

@@ -175,8 +175,7 @@ keras.Model = class {
             }
         }
         
-        this._activeGraph = new keras.Graph(metadata, model_config, weights);
-        this._graphs.push(this._activeGraph);
+        this._graphs = [ new keras.Graph(metadata, model_config, weights) ];
     }
 
     get name() {