Skip to content

Commit

Permalink
Silence some pytype errors.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 527708098
  • Loading branch information
rchen152 authored and tensorflower-gardener committed Apr 27, 2023
1 parent 8b1a801 commit af9d021
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _skip_compressible_weights(self, *args, **kwargs):
self.dummy_name_to_tensor[name] = dummy_zeros
return dummy_zeros

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

return tf.zeros(shape)

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

# Add weights needed by algorithm during inference.
Expand Down

0 comments on commit af9d021

Please sign in to comment.