You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ deno run -A --unstable test.ts
Tensor {
shape: [ 2 ],
data: Float32Array(2) [ 0.3955751657485962, 0.6075010895729065 ]
}
However, if I update the last layer to 256 (or more) neurons, this happens:
$ deno run -A --unstable test.ts
thread '<unnamed>' panicked at 'source slice length (256) does not match destination slice length (0)', rust\src\ffi.rs:74:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: Rust cannot catch foreign exceptions
With 255 neurons or less, this error does not happen.
It also looks like this only happens when using the CPU backend, not the WASM backend. There is no error if I use the WASM backend.
I am running deno 1.37.1 on Windows 10.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
bittere
changed the title
Unable to use more than 255 output neurons
Unable to use more than 255 output neurons on the CPU backend
Oct 13, 2023
Hi.
Here is a simple neural network with an output of 2 neurons:
However, if I update the last layer to 256 (or more) neurons, this happens:
With 255 neurons or less, this error does not happen.
It also looks like this only happens when using the
CPU
backend, not theWASM
backend. There is no error if I use theWASM
backend.I am running
deno 1.37.1
onWindows 10
.Thanks in advance!
The text was updated successfully, but these errors were encountered: