From 4f9975061198c8825de069ec61214ceab33dcb4a Mon Sep 17 00:00:00 2001 From: Qingchao Shen Date: Tue, 23 May 2023 12:58:06 +0800 Subject: [PATCH] [TypoFix] fix some typo problem in keras frontend (#14916) * fix a wrong crash message * Update keras.py --- python/tvm/relay/frontend/keras.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tvm/relay/frontend/keras.py b/python/tvm/relay/frontend/keras.py index 023ce52b2f6a..86131a6216bc 100644 --- a/python/tvm/relay/frontend/keras.py +++ b/python/tvm/relay/frontend/keras.py @@ -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) @@ -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)