@mineproness/tensorloop 2.1.4 → 2.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -1
- package/package.json +1 -1
- package/src/Softmax/index.d.ts +2 -2
package/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import {SelfAttention as ST} from './src/SelfAttention/index.js'
|
|
|
8
8
|
import {GELU as GU} from './src/GELU/index.js'
|
|
9
9
|
import {FFN as ffn} from './src/FFN/index.js'
|
|
10
10
|
import { TransformerBlock as TB} from './src/TransformerBlock/index.js'
|
|
11
|
+
import Model from "./src/Model/index.js";
|
|
11
12
|
export const Tokenizer = tokenizer
|
|
12
13
|
export const Embedding = embeddding2
|
|
13
14
|
export const Linear = li2
|
|
@@ -17,4 +18,5 @@ export const PositionEmbedding = PE
|
|
|
17
18
|
export const SelfAttention = ST
|
|
18
19
|
export const GELU = GU
|
|
19
20
|
export const FFN = ffn
|
|
20
|
-
export const TransformerBlock = TB
|
|
21
|
+
export const TransformerBlock = TB
|
|
22
|
+
export const model = Model
|
package/package.json
CHANGED
package/src/Softmax/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export class Softmax{
|
|
2
2
|
forward(xLi : number[]) : number
|
|
3
|
-
backward(target : number[]) : Float32Array[]
|
|
4
|
-
crossEntropy(
|
|
3
|
+
backward(probs: Float32Array[], target : number[]) : Float32Array[]
|
|
4
|
+
crossEntropy(probs: Float32Array[], target: number[])
|
|
5
5
|
}
|