Ver código fonte

Update keras.js

Lutz Roeder 3 semanas atrás
pai
commit
691d81b0e9
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      source/keras.js

+ 1 - 1
source/keras.js

@@ -12,7 +12,7 @@ keras.ModelFactory = class {
         const extension = identifier.lastIndexOf('.') > 0 ? identifier.split('.').pop().toLowerCase() : '';
         const group = await context.peek('hdf5');
         if (group && group.attributes && group.attributes.get('CLASS') !== 'hickle') {
-            if (identifier === 'model.weights.h5') {
+            if (identifier.endsWith('.weights.h5')) {
                 return context.set('keras.model.weights.h5', group);
             }
             if (identifier === 'parameter.h5') {