Skip to content

Commit 5655d1c

Browse files
rchen152copybara-github
authored andcommitted
Silence new type errors in Python 3.10.
PiperOrigin-RevId: 464126634
1 parent fb7b0b5 commit 5655d1c

File tree

1 file changed

+1
-1
lines changed
  • tensorflow_examples/lite/model_maker/third_party/efficientdet/keras

1 file changed

+1
-1
lines changed

tensorflow_examples/lite/model_maker/third_party/efficientdet/keras/util_keras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _get_cpt_var_name(var_name):
113113
cpt_var_name = cpt_var_name.replace(':0', '')
114114
break
115115

116-
return cpt_var_name + '/.ATTRIBUTES/VARIABLE_VALUE'
116+
return cpt_var_name + '/.ATTRIBUTES/VARIABLE_VALUE' # pytype: disable=name-error # py310-upgrade
117117

118118
for var in model.weights:
119119
cpt_var_name = _get_cpt_var_name(var.name)

0 commit comments

Comments
 (0)