Skip to content

Commit

Permalink
Style changes to pass the precommits
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryli27 committed Oct 11, 2024
1 parent ab5c45c commit 9ea287f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions moshi/moshi/modules/conv_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


CONV1D_DATA = [
# batch_size,in_channels,out_channels,seq_len,kernel_size
# batch_size, in_channels, out_channels, seq_len, kernel_size
pytest.param(
3, 4, 5, 10, 6,
id='small conv1d test 1',
Expand All @@ -30,7 +30,7 @@
]

CONV1D_TRANSPOSE_DATA = [
# batch_size,in_channels,out_channels,seq_len,kernel_size,stride
# batch_size, in_channels, out_channels, seq_len, kernel_size, stride
pytest.param(
3, 4, 5, 10, 6, 1,
id='small conv1d transpose test 1',
Expand Down Expand Up @@ -60,7 +60,7 @@ def _init_weights(module, generator=None):
nn.init.xavier_uniform_(param, generator=generator)


@pytest.mark.parametrize("batch_size,in_channels,out_channels,seq_len,kernel_size", CONV1D_DATA)
@pytest.mark.parametrize("batch_size, in_channels, out_channels, seq_len, kernel_size", CONV1D_DATA)
def test_conv1d(batch_size, in_channels, out_channels, seq_len, kernel_size):
"""Test that StreamingConv1d() calls are causal. Having new inputs does not change the previous output."""
assert seq_len > kernel_size
Expand Down
2 changes: 1 addition & 1 deletion moshi/moshi/modules/seanet_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


SEANET_RESNET_DATA = [
# batch_size,dim,res_layer_index,seq_len,kernel_size
# batch_size, dim, res_layer_index, seq_len, kernel_size
pytest.param(
3, 4, 1, 10, 6,
id='small resnet test 1',
Expand Down

0 comments on commit 9ea287f

Please sign in to comment.