@mineproness/tensorloop 1.2.6 → 1.2.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mineproness/tensorloop",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "The most powerfull Machine Learning Library for AI.",
5
5
  "keywords": [
6
6
  "ai",
@@ -29,7 +29,7 @@ export class Embedding {
29
29
  }
30
30
  } else {
31
31
  this.vectors = GenerateVectors(embeddingSize, vocabSize)
32
-
32
+
33
33
  }
34
34
  }
35
35
  forward(token) {
package/src/GetConfigs.js CHANGED
@@ -31,5 +31,5 @@ export function SaveBias(vectors, path){
31
31
  export function LoadBias(path){
32
32
  const buffer = fs.readFileSync(path)
33
33
  const flatArray = new Float32Array(buffer.buffer, buffer.byteOffset, buffer.byteLength / 4 )
34
- return vectors
34
+ return Bias
35
35
  }
@@ -30,8 +30,8 @@ export class Linear {
30
30
  const { vectors, Bias } = GenerateWeightsBias(embeddingSize, vocabSize)
31
31
  this.Weights = vectors;
32
32
  this.Bias = Bias;
33
- SaveVectors(configs.save.filename[0], this.Weights)
34
- SaveBias(configs.save.filename[1], this.Bias)
33
+ SaveVectors( this.Weights,configs.save.filename[0])
34
+ SaveBias(this.Bias,configs.save.filename[1])
35
35
  }
36
36
  } else {
37
37
  const { vectors, Bias } = GenerateWeightsBias(embeddingSize, vocabSize)
@@ -40,8 +40,8 @@ export class Linear {
40
40
  }
41
41
  }
42
42
  Save() {
43
- SaveVectors(this.configs.save.filename[0], this.Weights)
44
- SaveBias(this.configs.save.filename[1], this.Bias)
43
+ SaveVectors(this.Weights,this.configs.save.filename[0])
44
+ SaveBias(this.Bias, this.configs.save.filename[1])
45
45
  }
46
46
  forward(input) {
47
47
  this.input.push(input)