diff --git a/README.md b/README.md index 19fe19a..2aadeb9 100644 --- a/README.md +++ b/README.md @@ -253,7 +253,7 @@ console.log(`1 xor 1 = ${out4[0]} (should be close to 0)`); ### Documentation The full documentation for Netsaur can be found -[here](https://deno.land/x/netsaur@0.2.10/mod.ts). +[here](https://deno.land/x/netsaur@0.2.12/mod.ts). ### License diff --git a/crates/core-gpu/Cargo.toml b/crates/core-gpu/Cargo.toml index 82ea217..154b812 100644 --- a/crates/core-gpu/Cargo.toml +++ b/crates/core-gpu/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "netsaur-gpu" -version = "0.2.10" +version = "0.2.12" [lib] crate-type = ["cdylib"] diff --git a/crates/core/Cargo.toml b/crates/core/Cargo.toml index fb76d18..adc4443 100644 --- a/crates/core/Cargo.toml +++ b/crates/core/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "netsaur" -version = "0.2.10" +version = "0.2.12" [lib] crate-type = ["cdylib"] diff --git a/crates/tokenizers/Cargo.toml b/crates/tokenizers/Cargo.toml index ffe633d..162cf99 100644 --- a/crates/tokenizers/Cargo.toml +++ b/crates/tokenizers/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "netsaur-tokenizers" -version = "0.2.10" +version = "0.2.12" [lib] crate-type = ["cdylib"] diff --git a/deno.lock b/deno.lock index d8d0d77..ed0e6bc 100644 --- a/deno.lock +++ b/deno.lock @@ -861,6 +861,32 @@ "https://deno.land/x/huggingface@0.2.4/tokenizers/src/wasm.js": "d797f93da26460b667add22fae682f566790d7f1360a83cf4104f42458d328c3", "https://deno.land/x/lz4@v0.1.2/mod.ts": "4decfc1a3569d03fd1813bd39128b71c8f082850fe98ecfdde20025772916582", "https://deno.land/x/lz4@v0.1.2/wasm.js": "b9c65605327ba273f0c76a6dc596ec534d4cda0f0225d7a94ebc606782319e46", + "https://deno.land/x/netsaur@0.2.11/deps.ts": "0df3ca4c9bc92e99030f06cc65e71573a04b9174d36d24777f405274e96a07d3", + "https://deno.land/x/netsaur@0.2.11/mod.ts": "de8872916bd378ba379bb5a3988ea453d5be7d89756dc263e7c592a736f3d567", + "https://deno.land/x/netsaur@0.2.11/src/backends/cpu/backend.ts": "6bb2eab59ab4223f1b6651c31c9439773e108fa0498d832235623163112dec5f", + "https://deno.land/x/netsaur@0.2.11/src/backends/cpu/mod.ts": "6e670f87c60c5d14e606c04f1aabad0a42c37ec3d126b4d1cebaf50a9d69c0bf", + "https://deno.land/x/netsaur@0.2.11/src/backends/cpu/util.ts": "6b276cbf7611ececc243e4b92ca13ac3c1a3612b4e71d53a362937c7f5f3e0bb", + "https://deno.land/x/netsaur@0.2.11/src/backends/gpu/backend.ts": "9ab6f5309b554fd9aee11f731e1886c42f18e622d4167ba9f972965fd4f0fc07", + "https://deno.land/x/netsaur@0.2.11/src/backends/gpu/mod.ts": "72d4a1f40b53372918ee21bcad609de26535e1ccafcdf20842fb2b44be108e68", + "https://deno.land/x/netsaur@0.2.11/src/backends/gpu/util.ts": "6b276cbf7611ececc243e4b92ca13ac3c1a3612b4e71d53a362937c7f5f3e0bb", + "https://deno.land/x/netsaur@0.2.11/src/backends/wasm/backend.ts": "17d1fa2dac0506d44bd01b749b736f60d75c2f5c7c7681ca1af304e4b6cd1df9", + "https://deno.land/x/netsaur@0.2.11/src/backends/wasm/lib/netsaur.generated.js": "42a3c2a02205c40c78d2b76ef211872793f45beecf6fa3630b85094af6fa4293", + "https://deno.land/x/netsaur@0.2.11/src/backends/wasm/mod.ts": "49bf13f27ed1e276bb0ae5aa0819049f9b6d7d28f76dc4cedf0a3bc03296f120", + "https://deno.land/x/netsaur@0.2.11/src/backends/wasm/utils.ts": "7ad199b41c9eb133d8e5a3e64eaa6deba06b293c1b13b72753230b166cde916f", + "https://deno.land/x/netsaur@0.2.11/src/core/api/error.ts": "b58811e114b9ffc9d5fa77ddca7a72e3b21d009efb060440de5b5ea5f630b0ef", + "https://deno.land/x/netsaur@0.2.11/src/core/api/layer.ts": "27c34b83c677ce2e92cf7d31211925b1df301dc19c0c76d04e283eb2e102cd34", + "https://deno.land/x/netsaur@0.2.11/src/core/api/layers.ts": "5120bd93eff110999da895172a9e8a4f77b49fc5aa26b5f88aa55678d300f696", + "https://deno.land/x/netsaur@0.2.11/src/core/api/network.ts": "de3ee840b0b169a394accfd28abcac699c731853198eda920315895a4c8ce538", + "https://deno.land/x/netsaur@0.2.11/src/core/api/optimizer.ts": "30d5f2f6e7a469910e6735dee1bb3e06e2c8ebaed48d6c55d4662bb998b473f9", + "https://deno.land/x/netsaur@0.2.11/src/core/api/scheduler.ts": "beda91f50792eb7b496b5efd78b5ef937cbdb367631d8b487d298872c87e4515", + "https://deno.land/x/netsaur@0.2.11/src/core/api/shape.ts": "a65b381937751ab5e0016fb5c8afb023aff480f39612f77d200fea85249026d4", + "https://deno.land/x/netsaur@0.2.11/src/core/engine.ts": "8d53ab8d22ab0cf5f8a33e1506a6d36660d072d0b50389e95756de8104c03fba", + "https://deno.land/x/netsaur@0.2.11/src/core/mod.ts": "f78f24478dc2d30d7d2a85c5ca1c3c28cbdd758926fbf3bb12136c72503dca27", + "https://deno.land/x/netsaur@0.2.11/src/core/tensor/tensor.ts": "2db0c0e5b6cdece8c50b36cc8d683c73fd38cccb101ce12375f1bf2c8859155b", + "https://deno.land/x/netsaur@0.2.11/src/core/tensor/util.ts": "d76a96380354085992731599eaec98f7cc59c2af821e03531b72296277249b34", + "https://deno.land/x/netsaur@0.2.11/src/core/types.ts": "4062d4d41ae173676eb47dee20ab5c097a1cec0a2dda0c28297c43ae762abaad", + "https://deno.land/x/netsaur@0.2.11/visualizer/mod.ts": "0cc351bfe6d9887a3a13124ee7295973972b30a055b95dad6e462c6bbeb4cc84", + "https://deno.land/x/netsaur@0.2.11/visualizer/types.ts": "aa4b22cc4ea3efc86fd690550bf937479b71aea595c32df4165392eb99799454", "https://deno.land/x/netsaur@0.2.8/deps.ts": "ecf8d69bb639cea2aeac1c69730b5a0f5f5fd3518090449c027176cd0fdc4415", "https://deno.land/x/netsaur@0.2.8/mod.ts": "ed16d242a2792677c47d0082b82321090eaf64e262e017e741373789bcc6c11e", "https://deno.land/x/netsaur@0.2.8/src/backend_cpu/backend.ts": "5ef0911e6fcd682b891dc64173cafde76b141490c73cedcf66d9ba152cf87ec0", diff --git a/examples/visualize.ipynb b/examples/visualize.ipynb index 3427b4e..3d39faf 100644 --- a/examples/visualize.ipynb +++ b/examples/visualize.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": {}, "outputs": [ { @@ -45,10 +45,10 @@ 4 ], "y": [ - 0.007869369350373745, - 0.9794451594352722, - 0.9797343611717224, - 0.024822847917675972 + 0.003289452288299799, + 0.9970281720161438, + 0.9970269799232483, + 0.0030299543868750334 ] } ], @@ -57,21 +57,14 @@ } } }, - "execution_count": 1, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WASM Backend Initialized\n" - ] } ], "source": [ - "import { tensor1D } from \"https://deno.land/x/netsaur@0.2.10/mod.ts\";\n", - "import { Visualizer } from \"https://deno.land/x/netsaur@0.2.10/visualizer/mod.ts\";\n", + "import { tensor1D } from \"https://deno.land/x/netsaur@0.2.12/mod.ts\";\n", + "import { Visualizer } from \"https://deno.land/x/netsaur@0.2.12/visualizer/mod.ts\";\n", "\n", "import {\n", " Cost,\n", @@ -81,7 +74,7 @@ " setupBackend,\n", " SigmoidLayer,\n", " tensor2D,\n", - "} from \"https://deno.land/x/netsaur@0.2.10/mod.ts\";\n", + "} from \"https://deno.land/x/netsaur@0.2.12/mod.ts\";\n", " \n", "await setupBackend(AUTO);\n", "\n", diff --git a/examples/xor.ipynb b/examples/xor.ipynb index 53cbc19..0a2b323 100644 --- a/examples/xor.ipynb +++ b/examples/xor.ipynb @@ -36,7 +36,7 @@ } ], "source": [ - "import { setupBackend, CPU } from \"https://deno.land/x/netsaur@0.2.10/mod.ts\";\n", + "import { setupBackend, CPU } from \"https://deno.land/x/netsaur@0.2.12/mod.ts\";\n", "await setupBackend(CPU);" ] }, @@ -68,7 +68,7 @@ } ], "source": [ - "import { setupBackend, WASM } from \"https://deno.land/x/netsaur@0.2.10/mod.ts\";\n", + "import { setupBackend, WASM } from \"https://deno.land/x/netsaur@0.2.12/mod.ts\";\n", "await setupBackend(WASM);" ] }, @@ -92,7 +92,7 @@ "metadata": {}, "outputs": [], "source": [ - "import { setupBackend, GPU } from \"https://deno.land/x/netsaur@0.2.10/mod.ts\";\n", + "import { setupBackend, GPU } from \"https://deno.land/x/netsaur@0.2.12/mod.ts\";\n", "await setupBackend(GPU);" ] }, @@ -109,7 +109,7 @@ "metadata": {}, "outputs": [], "source": [ - "import { Sequential, DenseLayer, SigmoidLayer, Cost, tensor2D, tensor1D } from \"https://deno.land/x/netsaur@0.2.10/mod.ts\";\n", + "import { Sequential, DenseLayer, SigmoidLayer, Cost, tensor2D, tensor1D } from \"https://deno.land/x/netsaur@0.2.12/mod.ts\";\n", "const net = new Sequential({\n", " /**\n", " * The number of minibatches is set to 4 and the output size is set to 2.\n", diff --git a/mod.ts b/mod.ts index a30dc2a..dded268 100644 --- a/mod.ts +++ b/mod.ts @@ -6,7 +6,6 @@ export * from "./src/core/api/layers.ts"; export * from "./src/core/api/shape.ts"; export * from "./src/core/api/network.ts"; export * from "./src/core/api/optimizer.ts"; -export * from "./src/core/api/scheduler.ts"; export { GPU } from "./src/backends/gpu/mod.ts"; import { CPU } from "./src/backends/cpu/mod.ts"; diff --git a/src/backends/gpu/mod.ts b/src/backends/gpu/mod.ts index 46b0e4b..ffe28bf 100644 --- a/src/backends/gpu/mod.ts +++ b/src/backends/gpu/mod.ts @@ -9,7 +9,7 @@ const options: FetchOptions = { name: "netsaur_gpu", url: new URL(import.meta.url).protocol !== "file:" ? new URL( - "https://github.com/denosaurs/netsaur/releases/download/0.2.10/", + "https://github.com/denosaurs/netsaur/releases/download/0.2.12/", import.meta.url, ) : "./target/release/", diff --git a/src/backends/wasm/mod.ts b/src/backends/wasm/mod.ts index 970d47b..815ed4d 100644 --- a/src/backends/wasm/mod.ts +++ b/src/backends/wasm/mod.ts @@ -16,7 +16,7 @@ export class WASMInstance { await instantiate({ url: new URL(import.meta.url).protocol !== "file:" ? new URL( - "https://github.com/denosaurs/netsaur/releases/download/0.2.10/netsaur_bg.wasm", + "https://github.com/denosaurs/netsaur/releases/download/0.2.12/netsaur_bg.wasm", import.meta.url, ) : undefined, diff --git a/tokenizers/mod.ts b/tokenizers/mod.ts index 808806f..915b26b 100644 --- a/tokenizers/mod.ts +++ b/tokenizers/mod.ts @@ -11,7 +11,7 @@ export async function init() { await instantiate({ url: new URL(import.meta.url).protocol !== "file:" ? new URL( - "https://github.com/denosaurs/netsaur/releases/download/0.2.10/netsaur_tokenizers_bg.wasm", + "https://github.com/denosaurs/netsaur/releases/download/0.2.12/netsaur_tokenizers_bg.wasm", import.meta.url, ) : undefined, diff --git a/web.ts b/web.ts index 8d83f74..d588f70 100644 --- a/web.ts +++ b/web.ts @@ -6,6 +6,5 @@ export * from "./src/core/api/layers.ts"; export * from "./src/core/api/shape.ts"; export * from "./src/core/api/network.ts"; export * from "./src/core/api/optimizer.ts"; -export * from "./src/core/api/scheduler.ts"; export { WASM } from "./src/backends/wasm/mod.ts";