Skip to content

Commit

Permalink
Silence some pytype errors.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 528510090
  • Loading branch information
rchen152 authored and Magenta Team committed May 1, 2023
1 parent 0188381 commit b2d180a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ddsp/training/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def __init__(self, sample_rate, frame_rate, name='loudness'):
def metrics(self):
return self._metrics

def update_state(self, batch, audio_gen):
def update_state(self, batch, audio_gen): # pytype: disable=signature-mismatch # overriding-parameter-count-checks
"""Update metrics based on a batch of audio.
Args:
Expand Down Expand Up @@ -228,7 +228,7 @@ def __init__(self, sample_rate, frame_rate, name='f0_crepe'):
def metrics(self):
return self._metrics

def update_state(self, batch, audio_gen):
def update_state(self, batch, audio_gen): # pytype: disable=signature-mismatch # overriding-parameter-count-checks
"""Update metrics based on a batch of audio.
Args:
Expand Down Expand Up @@ -293,7 +293,7 @@ def __init__(
def metrics(self):
return self._metrics

def update_state(self, batch, f0_hz_predict):
def update_state(self, batch, f0_hz_predict): # pytype: disable=signature-mismatch # overriding-parameter-count-checks
"""Update metrics based on a batch of audio.
Args:
Expand Down

0 comments on commit b2d180a

Please sign in to comment.