Skip to content

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 committed Dec 11, 2023
1 parent 76e9a91 commit 330c6fc
Show file tree
Hide file tree
Showing 19 changed files with 66 additions and 24 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

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].13/mod.ts).
[here](https://deno.land/x/[email protected].15/mod.ts).

### License

Expand Down
2 changes: 2 additions & 0 deletions crates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ This directory contains the source code for the Netsaur Rust crates.
## Crates

* [core](/core) - The main crate for the Netsaur FFI and wasm bindings.
* [core-gpu](/core-gpu) - The main crate for the Netsaur GPU FFI and wasm bindings.
* [tokenizers](/tokenizers) - The main crate for the Netsaur tokenizers wasm bindings.
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.13"
version = "0.2.15"

[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.13"
version = "0.2.15"

[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.13"
version = "0.2.15"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion data/deps.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { CsvParseStream } from "https://deno.land/std@0.204.0/csv/csv_parse_stream.ts";
export { CsvParseStream } from "https://deno.land/std@0.208.0/csv/csv_parse_stream.ts";
42 changes: 41 additions & 1 deletion deno.lock

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

2 changes: 1 addition & 1 deletion examples/tokenizers/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const tokenizer = Tokenizer.fromJSON(
)).text(),
);

console.log("Hello World!", tokenizer.tokenize("Hello World!"));
console.log("Hello World!", tokenizer.encode("Hello World!"));
6 changes: 3 additions & 3 deletions examples/visualize.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
}
],
"source": [
"import { tensor1D } from \"https://deno.land/x/[email protected].13/mod.ts\";\n",
"import { Visualizer } from \"https://deno.land/x/[email protected].13/visualizer/mod.ts\";\n",
"import { tensor1D } from \"https://deno.land/x/[email protected].15/mod.ts\";\n",
"import { Visualizer } from \"https://deno.land/x/[email protected].15/visualizer/mod.ts\";\n",
"\n",
"import {\n",
" Cost,\n",
Expand All @@ -74,7 +74,7 @@
" setupBackend,\n",
" SigmoidLayer,\n",
" tensor2D,\n",
"} from \"https://deno.land/x/[email protected].13/mod.ts\";\n",
"} from \"https://deno.land/x/[email protected].15/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].13/mod.ts\";\n",
"import { setupBackend, CPU } from \"https://deno.land/x/[email protected].15/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].13/mod.ts\";\n",
"import { setupBackend, WASM } from \"https://deno.land/x/[email protected].15/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].13/mod.ts\";\n",
"import { setupBackend, GPU } from \"https://deno.land/x/[email protected].15/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].13/mod.ts\";\n",
"import { Sequential, DenseLayer, SigmoidLayer, Cost, tensor2D, tensor1D } from \"https://deno.land/x/[email protected].15/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
2 changes: 1 addition & 1 deletion src/backends/cpu/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const options: FetchOptions = {
name: "netsaur",
url: new URL(import.meta.url).protocol !== "file:"
? new URL(
"https://github.com/denosaurs/netsaur/releases/download/0.2.14/",
"https://github.com/denosaurs/netsaur/releases/download/0.2.15/",
import.meta.url,
)
: "./target/release/",
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 @@ -15,7 +15,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.14/",
"https://github.com/denosaurs/netsaur/releases/download/0.2.15/",
import.meta.url,
)
: "./target/release/",
Expand Down
4 changes: 2 additions & 2 deletions src/backends/wasm/lib/netsaur.generated.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @generated file from wasmbuild -- do not edit
// deno-lint-ignore-file
// deno-fmt-ignore-file
// source-hash: d2763e5966c8367f7be14106af540e555164a811
// source-hash: a728f73002f1cb653f10fe9495ef33f79d70a523
let wasm;
let cachedInt32Memory0;

Expand Down Expand Up @@ -203,7 +203,7 @@ const imports = {
__wbindgen_object_drop_ref: function (arg0) {
takeObject(arg0);
},
__wbg_log_fd19485ee91363a8: function (arg0, arg1) {
__wbg_log_8d8708b5d26d7ac1: function (arg0, arg1) {
console.log(getStringFromWasm0(arg0, arg1));
},
__wbindgen_number_new: function (arg0) {
Expand Down
Binary file modified src/backends/wasm/lib/netsaur_bg.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion src/backends/wasm/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,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.14/netsaur_bg.wasm",
"https://github.com/denosaurs/netsaur/releases/download/0.2.15/netsaur_bg.wasm",
import.meta.url,
)
: undefined,
Expand Down
2 changes: 1 addition & 1 deletion tokenizers/lib/netsaur_tokenizers.generated.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @generated file from wasmbuild -- do not edit
// deno-lint-ignore-file
// deno-fmt-ignore-file
// source-hash: 8beb82a36802cbe280139e22e69a33415c0cb780
// source-hash: befde420faca401acb360b5de6f414becebadd55
let wasm;

const heap = new Array(128).fill(undefined);
Expand Down
Binary file modified tokenizers/lib/netsaur_tokenizers_bg.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion tokenizers/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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.13/netsaur_tokenizers_bg.wasm",
"https://github.com/denosaurs/netsaur/releases/download/0.2.15/netsaur_tokenizers_bg.wasm",
import.meta.url,
)
: undefined,
Expand Down

0 comments on commit 330c6fc

Please sign in to comment.