Lunderberg opened a new pull request, #13539:
URL: https://github.com/apache/tvm/pull/13539

   Previously, the FFI would automatically convert all instances of 
`tvm::runtime::DataType` to a string for FFI usage.  This was an unnecessary 
step of formatting/parsing to every FFI call with `tvm::runtime::DataType` 
arguments, and resulted in duplicate parsing/formatting implementations in C++ 
and Python.
   
   This commit updates the FFI to pass `tvm::runtime::DataType` directly, using 
the existing `TVMArgTypeCode::kTVMDataType` type code.  The `tvm.DataType` 
wrapper class is updated with additional methods for backwards compatibility 
(e.g. `"float" in dtype`, `bits = int(dtype[-2:])`), which can be phased out 
over time.


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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to