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 <[email protected]>
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)

Reply via email to