Skip to content

Commit f41654c

Browse files
committed
fix bugs
1 parent a60cf0b commit f41654c

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

brainpy/dyn/layers/tests/test_conv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import jax.numpy as jnp
88
import numpy as np
99
import matplotlib.pyplot as plt
10-
10+
bp.math.random.seed()
1111

1212
class TestConv(TestCase):
1313
def test_Conv2D_img(self):

brainpy/dyn/layers/tests/test_pooling.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import brainpy as bp
99
import brainpy.math as bm
10+
bm.random.seed()
1011

1112

1213
class TestPool(TestCase):

brainpy/math/operators/tests/test_op_register.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import brainpy as bp
88
import brainpy.math as bm
99

10+
11+
bm.random.seed()
1012
bm.set_platform('cpu')
1113

1214

brainpy/math/surrogate/tests/test_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from functools import partial
66

77
import brainpy.math as bm
8+
bm.random.seed()
89

910

1011
def test_sp_sigmoid_grad():

0 commit comments

Comments
 (0)