Skip to content

Commit

Permalink
update README.md, fix issue with dropout
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed May 8, 2020
1 parent d04949f commit b20c052
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ The goal of this tool is to provide a quick and easy way to execute Keras models
- **Important:** The current GRU support is based on [`GRU v3`](https://www.tensorflow.org/api_docs/python/tf/keras/layers/GRU) in tf.keras 2.1.0. It will not work correctly with older versions of TensorFlow.
- Batch prediction untested
- BatchNormalization
- Tested and working with:
- Dense
- GRU
- Works with all supported layers
- Activations:
- ReLU
- Sigmoid
Expand Down
3 changes: 2 additions & 1 deletion konverter/utils/konverter_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def get_layer_info(self, layer):

try:
wb = layer.get_weights()
layer_class.info.has_weights = True # TODO: test dropout with this, TODO: unused, delete?
if len(wb) == 0:
return layer_class
except:
return layer_class

Expand Down
1 change: 0 additions & 1 deletion konverter/utils/model_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ class BaseModelInfo:
class BaseLayerInfo:
supported = False
has_activation = False
has_weights = False
returns_sequences = False
is_recurrent = False
is_ignored = False
Expand Down

0 comments on commit b20c052

Please sign in to comment.