Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 326259440
  • Loading branch information
Magenta Team committed Aug 12, 2020
1 parent 91375fe commit 31b42c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ddsp/losses_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def test_output_shape_is_correct(self):
loudness_weight=1.0,
)

input_audio = tf.random.uniform((3, 8000), dtype=tf.float32)
target_audio = tf.random.uniform((3, 8000), dtype=tf.float32)
input_audio = tf.ones((3, 8000), dtype=tf.float32)
target_audio = tf.ones((3, 8000), dtype=tf.float32)

loss = loss_obj(input_audio, target_audio)

Expand All @@ -47,8 +47,8 @@ class PretrainedCREPEEmbeddingLossTest(tf.test.TestCase):
def test_output_shape_is_correct(self):
loss_obj = losses.PretrainedCREPEEmbeddingLoss()

input_audio = tf.random.uniform((3, 16000), dtype=tf.float32)
target_audio = tf.random.uniform((3, 16000), dtype=tf.float32)
input_audio = tf.ones((3, 16000), dtype=tf.float32)
target_audio = tf.ones((3, 16000), dtype=tf.float32)

loss = loss_obj(input_audio, target_audio)

Expand Down

0 comments on commit 31b42c2

Please sign in to comment.