You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/08/22 12:10:30 UTC

[GitHub] [tvm] HaoKang-Timmy opened a new issue, #12536: [Bug] Uable to parse 'broadcast_to' operator

HaoKang-Timmy opened a new issue, #12536:
URL: https://github.com/apache/tvm/issues/12536

   Hi, I want to use tvm.parse.parse_expr. But it can not parse operator 'broadcast_to'.
   Here is the code.
   '''
   import tvm
   from tvm import relay, auto_scheduler
   from tvm.relay import data_dep_optimization as ddo
   import tvm.relay.testing
   from tvm.contrib import graph_executor
   from tvm.contrib.utils import tempdir
   
   a = relay.var("a", shape=[1, 10])
   out = relay.broadcast_to(a, shape=[1,10])
   func = relay.Function([a], out)
   
   SEMVER = '#[version = "0.0.5"]\n'
   code = str(func)
   expr = tvm.parser.parse_expr(SEMVER + code)
   print(expr)
   
   '''
   error: unable to determine the 'attrs_type_key' with which to represent the call attributes for this operator
    --> string:3:3
      |  
    3 |    broadcast_to(%a, shape=[1, 10])
      |    ^^^^^^^^^^^^                   
   '''
   '''
   Is there any way to avoid this problem?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] HaoKang-Timmy commented on issue #12536: [Bug] Uable to parse 'broadcast_to' operator

Posted by GitBox <gi...@apache.org>.
HaoKang-Timmy commented on issue #12536:
URL: https://github.com/apache/tvm/issues/12536#issuecomment-1222270421

   @mbs-octoml 
   Hi, would it be possilbe for you to look at this problem?
   Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] HaoKang-Timmy commented on issue #12536: [Bug][Parser] Uable to parse 'broadcast_to' operator

Posted by GitBox <gi...@apache.org>.
HaoKang-Timmy commented on issue #12536:
URL: https://github.com/apache/tvm/issues/12536#issuecomment-1223484129

   Could you please look at this problem, please?
   @jroesch 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] AIYoungcino commented on issue #12536: [Bug][Parser] Uable to parse 'broadcast_to' operator

Posted by GitBox <gi...@apache.org>.
AIYoungcino commented on issue #12536:
URL: https://github.com/apache/tvm/issues/12536#issuecomment-1229963418

   Could you please look at this problem, please?@mbs-octoml 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] cery999 commented on issue #12536: [Bug][Parser] Uable to parse 'broadcast_to' operator

Posted by GitBox <gi...@apache.org>.
cery999 commented on issue #12536:
URL: https://github.com/apache/tvm/issues/12536#issuecomment-1236226589

   > @mbs-octoml
   > Hi, would it be possible for you to look at this problem?
   > Thanks
   
    x = relay.var("x", relay.TensorType(shape, "float32"))
            y = relay.var("y", relay.TensorType(broadcast_shape, "float32"))
            z = relay.broadcast_to(x, shape=relay.shape_of(y))


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org