Skip to content

Commit

Permalink
Missed an etab.data_format, also test_conv1d was not in the test file…
Browse files Browse the repository at this point in the history
…'s main
  • Loading branch information
slyubomirsky committed Jan 21, 2022
1 parent d50375d commit 50a3230
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def _convert_convolution1d(inexpr, keras_layer, etab, data_layout, input_shape=N
else:
out = _op.nn.conv1d(data=inexpr, **params)

channel_axis = -1 if etab.data_layout == "NWC" else 1
channel_axis = -1 if data_layout == "NWC" else 1
if keras_layer.use_bias:
bias = etab.new_const(weightList[1])
out = _op.nn.bias_add(out, bias, channel_axis)
Expand Down
1 change: 1 addition & 0 deletions tests/python/frontend/keras/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ def test_forward_time_distributed(self, keras):
sut.test_forward_sequential(keras=k)
sut.test_forward_pool(keras=k)
sut.test_forward_conv(keras=k)
sut.test_forward_conv1d(keras=k)
sut.test_forward_batch_norm(keras=k)
sut.test_forward_upsample(keras=k, interpolation="nearest")
sut.test_forward_upsample(keras=k, interpolation="bilinear")
Expand Down

0 comments on commit 50a3230

Please sign in to comment.