Skip to content

Commit

Permalink
value为None会导致无法copy
Browse files Browse the repository at this point in the history
  • Loading branch information
bojone authored Dec 15, 2020
1 parent b0fe7a7 commit 46c0108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bert4keras/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def arguments(self):

@arguments.setter
def arguments(self, value):
self._arguments = value
self._arguments = value or {}

if not is_tf_keras:
keras.engine.base_layer.Node = Node
Expand Down

0 comments on commit 46c0108

Please sign in to comment.