Interface: Module
torchlive/torch.Module
Methods
forward
▸ forward<In, Out>(...inputs): Promise<Out>
Module forward function.
Type parameters
| Name | Type |
|---|---|
In | In: IValue[] |
Out | Out: IValue |
Parameters
| Name | Type | Description |
|---|---|---|
...inputs | [...In[]] | Module inputs. Input could be of type IValue |
Returns
Promise<Out>
Module output, which is particular to the model and can be any of the IValue union types.
forwardSync
▸ forwardSync<In, Out>(...inputs): Out
Synchronous module forward function.
Type parameters
| Name | Type |
|---|---|
In | In: IValue[] |
Out | Out: IValue |
Parameters
| Name | Type | Description |
|---|---|---|
...inputs | [...In[]] | Module inputs. Input could be of type IValue |
Returns
Out
Module output, which is particular to the model and can be any of the IValue union types.