Skip to content

Commit

Permalink
[TypoFix] fix some typo problem in keras frontend (#14916)
Browse files Browse the repository at this point in the history
* fix a wrong crash message

* Update keras.py
  • Loading branch information
jikechao authored May 23, 2023
1 parent dddc339 commit 4f99750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/relay/frontend/keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def _convert_convolution1d(inexpr, keras_layer, etab, data_layout, input_shape=N
if is_deconv:
kernel_layout = "IOW"
msg = (
f"Kernel layout with {data_layout} is not supported for operator Convolution1D "
f"Kernel layout with {kernel_layout} is not supported for operator Convolution1D "
f"in frontend Keras."
)
raise tvm.error.OpAttributeUnImplemented(msg)
Expand Down Expand Up @@ -475,7 +475,7 @@ def _convert_convolution3d(inexpr, keras_layer, etab, data_layout, input_shape=N
if is_deconv:
kernel_layout = "IODHW"
msg = (
f"Kernel layout with {data_layout} is not supported for operator Convolution3D "
f"Kernel layout with {kernel_layout} is not supported for operator Convolution3D "
f"in frontend Keras."
)
raise tvm.error.OpAttributeUnImplemented(msg)
Expand Down

0 comments on commit 4f99750

Please sign in to comment.