Thanks for quick response.
If I used your suggested implementation:
The error will be:
File “/xtcl-master/baidu/xpu/xmir/include/tvm/runtime/packed_func.h”, line 687
TVMError: In function relay.op._make.take: error while converting argument 1: [02:09:14] /xtcl-master/baidu/xpu/xmir/include/tvm/runtime/packed_func.h:1584:
An internal invariant was violated during the execution of TVM.
Please read TVM’s error reporting guidelines.
More details can be found here: https://discuss.tvm.ai/t/error-reporting/7793.
Check failed: type_code_ == kTVMObjectHandle (0 vs. 8) : expected Object but got int
tensor type bool has 0 dimensions, while Tensor[(1), bool] has 1 dimensions
The Relay type checker is unable to show the following types match.
In particular Tensor[(1), bool] does not match bool
note: run with TVM_BACKTRACE=1 environment variable to display a backtrace.