Skip to content

Commit

Permalink
fix: versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 committed Oct 18, 2023
1 parent 0ca1d4f commit 532667b
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected].10/mod.ts).
[here](https://deno.land/x/[email protected].12/mod.ts).

### License

Expand Down
2 changes: 1 addition & 1 deletion crates/core-gpu/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "netsaur-gpu"
version = "0.2.10"
version = "0.2.12"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "netsaur"
version = "0.2.10"
version = "0.2.12"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion crates/tokenizers/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "netsaur-tokenizers"
version = "0.2.10"
version = "0.2.12"

[lib]
crate-type = ["cdylib"]
Expand Down
26 changes: 26 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 9 additions & 16 deletions examples/visualize.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -45,10 +45,10 @@
4
],
"y": [
0.007869369350373745,
0.9794451594352722,
0.9797343611717224,
0.024822847917675972
0.003289452288299799,
0.9970281720161438,
0.9970269799232483,
0.0030299543868750334
]
}
],
Expand All @@ -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/[email protected].10/mod.ts\";\n",
"import { Visualizer } from \"https://deno.land/x/[email protected].10/visualizer/mod.ts\";\n",
"import { tensor1D } from \"https://deno.land/x/[email protected].12/mod.ts\";\n",
"import { Visualizer } from \"https://deno.land/x/[email protected].12/visualizer/mod.ts\";\n",
"\n",
"import {\n",
" Cost,\n",
Expand All @@ -81,7 +74,7 @@
" setupBackend,\n",
" SigmoidLayer,\n",
" tensor2D,\n",
"} from \"https://deno.land/x/[email protected].10/mod.ts\";\n",
"} from \"https://deno.land/x/[email protected].12/mod.ts\";\n",
" \n",
"await setupBackend(AUTO);\n",
"\n",
Expand Down
8 changes: 4 additions & 4 deletions examples/xor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}
],
"source": [
"import { setupBackend, CPU } from \"https://deno.land/x/[email protected].10/mod.ts\";\n",
"import { setupBackend, CPU } from \"https://deno.land/x/[email protected].12/mod.ts\";\n",
"await setupBackend(CPU);"
]
},
Expand Down Expand Up @@ -68,7 +68,7 @@
}
],
"source": [
"import { setupBackend, WASM } from \"https://deno.land/x/[email protected].10/mod.ts\";\n",
"import { setupBackend, WASM } from \"https://deno.land/x/[email protected].12/mod.ts\";\n",
"await setupBackend(WASM);"
]
},
Expand All @@ -92,7 +92,7 @@
"metadata": {},
"outputs": [],
"source": [
"import { setupBackend, GPU } from \"https://deno.land/x/[email protected].10/mod.ts\";\n",
"import { setupBackend, GPU } from \"https://deno.land/x/[email protected].12/mod.ts\";\n",
"await setupBackend(GPU);"
]
},
Expand All @@ -109,7 +109,7 @@
"metadata": {},
"outputs": [],
"source": [
"import { Sequential, DenseLayer, SigmoidLayer, Cost, tensor2D, tensor1D } from \"https://deno.land/x/[email protected].10/mod.ts\";\n",
"import { Sequential, DenseLayer, SigmoidLayer, Cost, tensor2D, tensor1D } from \"https://deno.land/x/[email protected].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",
Expand Down
1 change: 0 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/backends/gpu/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down
2 changes: 1 addition & 1 deletion src/backends/wasm/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tokenizers/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

0 comments on commit 532667b

Please sign in to comment.