Performs model inference by inputting multiple tensor objects.
1 | infer(tensor: Tensor, args) |
infer(tensorList: List)
Parameter |
Type |
Description |
|---|---|---|
tensor |
Tensor object |
Tensor required for model inference. If you need to input multiple tensors, separate them with commas (,). A maximum of 1024 tensors can be input. |
args |
Variable parameter |
Parameter |
Type |
Description |
|---|---|---|
tensorList |
List[base.Tensor] |
Tensor list |
List[base.Tensor] output by the model inference
If parameter verification, tensor memory allocation, and inference fail, a runtime exception is thrown.