Skip to content

Commit

Permalink
Cosmetic fix: spell empty set as set(), because {} is a dict.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 262316441
  • Loading branch information
TensorFlow Hub Authors authored and arnoegw committed Aug 8, 2019
1 parent a4ade2f commit 8d3a143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow_hub/keras_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __init__(self, handle, trainable=False, arguments=None, **kwargs):
self._add_existing_weight(v, trainable=True)
trainable_variables = {id(v) for v in self._func.trainable_variables}
else:
trainable_variables = {}
trainable_variables = set()
if hasattr(self._func, "variables"):
for v in self._func.variables:
if id(v) not in trainable_variables:
Expand Down

0 comments on commit 8d3a143

Please sign in to comment.