junrushao opened a new pull request, #395:
URL: https://github.com/apache/tvm-ffi/pull/395

   This change enables us to convert Python functions directly to 
`tvm_ffi.Function` using its constructor. Example:
   
   ```python
   def add(a: int, b: int) -> int:
       return a + b
   
   func = tvm_ffi.Function(add)
   assert isinstance(func, tvm_ffi.Function)
   assert func(1, 2) == 3
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to