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 Dec 8, 2020
1 parent fed6bc6 commit f68e57d
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 @@ -341,7 +341,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 @@ -591,6 +591,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 f68e57d

Please sign in to comment.