Skip to content

Commit

Permalink
[TF] Custom activation fix (#557)
Browse files Browse the repository at this point in the history
* fix for #547
  • Loading branch information
negvet committed Mar 9, 2021
1 parent d83b5a0 commit 722871a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion beta/nncf/tensorflow/graph/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_custom_objects(model):
custom_objects[layer.__class__.__name__] = layer.__class__
if layer.__class__.__name__ == 'Activation':
if layer.activation.__name__ not in keras_activations:
custom_objects[layer.activation.__name__] = layer.__class__(layer.activation)
custom_objects[layer.activation.__name__] = layer.activation
return custom_objects


Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown

0 comments on commit 722871a

Please sign in to comment.