tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-tvm] tqchen commented on issue #5047: [Runtime] Python String container interface
Date Thu, 19 Mar 2020 16:46:48 GMT
tqchen commented on issue #5047: [Runtime] Python String container interface
URL: https://github.com/apache/incubator-tvm/issues/5047#issuecomment-601287957
 
 
   I can see the following steps:
   
   - Introduce the string container
      - We need to think about how to make the String object works like a normal python string(possibly
subclass str?, I haven't dig deep)
      - At this stage users can pass and return String but need to explicitly do so
   - Add automatic conversion from TVMArgValue to String, when the argument is c string pointer
and bytes, automatically convert to a String container(via copy).
   - Change the original usage of StringImm to use String instead
   - Change automatic object conversion(tvm.convert) https://github.com/apache/incubator-tvm/blob/master/python/tvm/runtime/object_generic.py#L59
to convert python str to String object

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message