tqchen commented on code in PR #81:
URL: https://github.com/apache/tvm-ffi/pull/81#discussion_r2395660729
##########
tests/python/test_load_inline.py:
##########
@@ -225,7 +225,7 @@ def test_load_inline_with_env_tensor_allocator() -> None:
namespace ffi = tvm::ffi;
ffi::Tensor return_add_one(ffi::Map<ffi::String,
ffi::Tuple<ffi::Tensor>> kwargs) {
- ffi::Tensor x = kwargs["x"].get<0>();
+ ffi::TensorView x = kwargs["x"].get<0>();
Review Comment:
this is fine because kwargs still holds the tensor
--
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]