Forge
@hotg-ai/forge / Exports / Forge
Class: Forge
A wrapper around a Rune that has been retrieved from elsewhere.
You probably don't want to use this directly.
Table of contents​
Constructors​
Properties​
Methods​
Constructors​
constructor​
• Private
new Forge(evaluate
, telemetry
)
Parameters​
Name | Type |
---|---|
evaluate | Evaluate |
telemetry | TelemetryBackend |
Properties​
evaluate​
• Private
evaluate: Evaluate
telemetry​
• Private
telemetry: TelemetryBackend
Methods​
predict​
â–¸ predict(inputs
): OutputValue
[]
Evaluate a Rune.
Parameters​
Name | Type | Description |
---|---|---|
inputs | Inputs | ReadInput | A function which will be invoked when loading each input, or an instance of the Inputs convenience type. |
Returns​
The tensors generated by the Rune.
load​
â–¸ Static
load(parameters
, backends
, signal?
): Promise
<Forge
>
Parameters​
Name | Type |
---|---|
parameters | Parameters |
backends | Record <string , LoadFunc > |
signal? | AbortSignal |
Returns​
Promise
<Forge
>