@mineproness/tensorloop 1.2.8 → 1.2.9

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.8",
3
+ "version": "1.2.9",
4
4
  "description": "The most powerfull Machine Learning Library for AI.",
5
5
  "keywords": [
6
6
  "ai",
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 Bias
34
+ return flatArray
35
35
  }
@@ -22,7 +22,7 @@ export class PositionEmbedding {
22
22
  this.embeddingSize = embeddingSize
23
23
  if (configs && configs.save) {
24
24
  if (existsSync(configs.save.filename)) {
25
- this.vectors = LoadVectors(onfigs.save.filename, embeddingSize)
25
+ this.vectors = LoadVectors(configs.save.filename, embeddingSize)
26
26
  } else {
27
27
  this.vectors = GenerateVectors(embeddingSize, vocabSize)
28
28
  this.Save()