From 8d3a14307eb7b4e307be9f5b787541a9dc90dcd9 Mon Sep 17 00:00:00 2001 From: TensorFlow Hub Authors Date: Thu, 8 Aug 2019 12:05:28 +0200 Subject: [PATCH] Cosmetic fix: spell empty set as set(), because {} is a dict. PiperOrigin-RevId: 262316441 --- tensorflow_hub/keras_layer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow_hub/keras_layer.py b/tensorflow_hub/keras_layer.py index 78bdc8d3c..92b8564ca 100644 --- a/tensorflow_hub/keras_layer.py +++ b/tensorflow_hub/keras_layer.py @@ -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: