Skip to content

Commit 33927d0

Browse files
author
Flax Authors
committed
Merge pull request #4764 from IvyZX:ci
PiperOrigin-RevId: 764970104
2 parents a2fe3ca + 63fa7de commit 33927d0

File tree

3 files changed

+1142
-1009
lines changed

3 files changed

+1142
-1009
lines changed

flax/linen/linear.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ def bias_init_wrap(rng, shape, dtype=jnp.float32):
205205
# dot_general output has shape [batch_dims/group_dims] + [feature_dims]
206206
if self.use_bias:
207207
# expand bias shape to broadcast bias over batch dims.
208+
assert bias is not None
208209
bias = jnp.reshape(bias, expanded_batch_shape + features)
209210
out += bias
210211
return out

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ testing = [
6767
"ale-py>=0.10.2",
6868
]
6969
docs = [
70-
"sphinx>=3.3.1",
70+
"sphinx>=4.3.0",
7171
"sphinx-book-theme",
7272
"Pygments>=2.6.1",
7373
"ipykernel",
@@ -78,9 +78,7 @@ docs = [
7878
"sphinx-design",
7979
"jupytext==1.13.8",
8080
"dm-haiku",
81-
# Need to pin docutils to 0.16 to make bulleted lists appear correctly on
82-
# ReadTheDocs: https://stackoverflow.com/a/68008428
83-
"docutils==0.16",
81+
"docutils",
8482
# The next packages are for notebooks.
8583
"matplotlib",
8684
"scikit-learn",

0 commit comments

Comments
 (0)