You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by sa...@apache.org on 2023/06/16 14:05:40 UTC
[tvm] branch main updated: [Bugfix][Relay][Keras] Fix a wrong variable name in keras frontend (#15107)
This is an automated email from the ASF dual-hosted git repository.
sanirudh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 2e441ca7ec [Bugfix][Relay][Keras] Fix a wrong variable name in keras frontend (#15107)
2e441ca7ec is described below
commit 2e441ca7ecde0fc966730b0d3f7d10ad1ae85a1c
Author: Qingchao Shen <qi...@outlook.com>
AuthorDate: Fri Jun 16 22:05:34 2023 +0800
[Bugfix][Relay][Keras] Fix a wrong variable name in keras frontend (#15107)
fix the error message
Fix the wrong variable name.
---
python/tvm/relay/frontend/keras.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/tvm/relay/frontend/keras.py b/python/tvm/relay/frontend/keras.py
index 8d437027e5..28bb81441c 100644
--- a/python/tvm/relay/frontend/keras.py
+++ b/python/tvm/relay/frontend/keras.py
@@ -262,7 +262,7 @@ def _convert_dense(
input_shape = tuple(dim if dim else 1 for dim in _as_list(input_shape)[0])
if input_dim != 3 or input_shape[0] != 1 or input_shape[1] != 1:
raise tvm.error.OpAttributeInvalid(
- f"Input shape {nput_shape} is not valid for operator Dense."
+ f"Input shape {input_shape} is not valid for operator Dense."
)
inexpr = _op.squeeze(inexpr, axis=[0])
out = _op.nn.dense(data=inexpr, **params)