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