Skip to content

Commit af9d021

Browse files
rchen152tensorflower-gardener
authored andcommitted
Silence some pytype errors.
PiperOrigin-RevId: 527708098
1 parent 8b1a801 commit af9d021

File tree

1 file changed

+2
-2
lines changed
  • tensorflow_model_optimization/python/core/common/keras/compression/internal

1 file changed

+2
-2
lines changed

tensorflow_model_optimization/python/core/common/keras/compression/internal/optimize.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _skip_compressible_weights(self, *args, **kwargs):
9191
self.dummy_name_to_tensor[name] = dummy_zeros
9292
return dummy_zeros
9393

94-
def build(self, input_shape):
94+
def build(self, input_shape): # pytype: disable=signature-mismatch # overriding-parameter-count-checks
9595
# Building nested layer via `super` must happen first
9696
# so that the nested layer's variables
9797
# are available to `init_training_weights`.
@@ -206,7 +206,7 @@ def _skip_compressible_weights(self, *args, **kwargs):
206206

207207
return tf.zeros(shape)
208208

209-
def build(self, input_shape):
209+
def build(self, input_shape): # pytype: disable=signature-mismatch # overriding-parameter-count-checks
210210
super(_InferenceWrapper, self).build(input_shape)
211211

212212
# Add weights needed by algorithm during inference.

0 commit comments

Comments
 (0)