-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathts
106 lines (59 loc) · 2.09 KB
/
ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[@hotg-ai/forge](../README.md) / [Exports](../modules.md) / 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
- [constructor](Forge.md#constructor)
### Properties
- [evaluate](Forge.md#evaluate)
- [telemetry](Forge.md#telemetry)
### Methods
- [predict](Forge.md#predict)
- [load](Forge.md#load)
## Constructors
### constructor
• `Private` **new Forge**(`evaluate`, `telemetry`)
#### Parameters
| Name | Type |
| :------ | :------ |
| `evaluate` | `Evaluate` |
| `telemetry` | `TelemetryBackend` |
#### Defined in
[src/Forge.ts:55](https://github.com/hotg-ai/forge-SDK/blob/ece6e04/web/src/Forge.ts#L55)
## Properties
### evaluate
• `Private` **evaluate**: `Evaluate`
#### Defined in
[src/Forge.ts:52](https://github.com/hotg-ai/forge-SDK/blob/ece6e04/web/src/Forge.ts#L52)
___
### telemetry
• `Private` **telemetry**: `TelemetryBackend`
#### Defined in
[src/Forge.ts:53](https://github.com/hotg-ai/forge-SDK/blob/ece6e04/web/src/Forge.ts#L53)
## Methods
### predict
▸ **predict**(`inputs`): [`OutputValue`](../modules.md#outputvalue)[]
Evaluate a Rune.
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `inputs` | [`Inputs`](../modules.md#inputs) \| `ReadInput` | A function which will be invoked when loading each input, or an instance of the Inputs convenience type. |
#### Returns
[`OutputValue`](../modules.md#outputvalue)[]
The tensors generated by the Rune.
#### Defined in
[src/Forge.ts:135](https://github.com/hotg-ai/forge-SDK/blob/ece6e04/web/src/Forge.ts#L135)
___
### load
▸ `Static` **load**(`parameters`, `backends`, `signal?`): `Promise`<[`Forge`](Forge.md)\>
#### Parameters
| Name | Type |
| :------ | :------ |
| `parameters` | [`Parameters`](../modules.md#parameters) |
| `backends` | `Record`<`string`, `LoadFunc`\> |
| `signal?` | `AbortSignal` |
#### Returns
`Promise`<[`Forge`](Forge.md)\>
#### Defined in
[src/Forge.ts:60](https://github.com/hotg-ai/forge-SDK/blob/ece6e04/web/src/Forge.ts#L60)