infer(tensor, args)
Function Usage
Performs model inference by inputting multiple tensor objects.
Input Parameter Description
Parameter |
Type |
Description |
|---|---|---|
tensor |
Tensor object |
Tensors 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 |
Return Parameter Description
Returns the List[base.Tensor] output by the model inference.
Exception Throwing Interface
If parameter verification, tensor memory allocation, and inference fail, a runtime exception is thrown.
Parent topic: Model