Skip to content

Commit 66056fb

Browse files
author
Bar Admoni
committed
Validate weights instead of biases
1 parent 4934b48 commit 66056fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/neural-network-gpu.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ describe('NeuralNetworkGPU', () => {
7777
);
7878
expect(net.weights.length).toBe(3);
7979
for (let i = 1; i < net.weights.length; i++) {
80-
expect(net.biases[i]).toBeInstanceOf(Texture);
80+
expect(net.weights[i]).toBeInstanceOf(Texture);
8181
}
82+
8283
expect(net.biases.length).toBe(3);
8384
for (let i = 1; i < net.biases.length; i++) {
8485
expect(net.biases[i]).toBeInstanceOf(Texture);

0 commit comments

Comments
 (0)