Skip to main content
Version: 0.2.3

Interface: Module

torchlive/torch.Module

Methods

forward

forward<In, Out>(...inputs): Promise<Out>

Module forward function.

Type parameters

NameType
InIn: IValue[]
OutOut: IValue

Parameters

NameTypeDescription
...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

NameType
InIn: IValue[]
OutOut: IValue

Parameters

NameTypeDescription
...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.