Skip to content

Commit cbe5ec1

Browse files
author
Flax Authors
committed
Merge pull request #1551 from jheek:version-0.3.5
PiperOrigin-RevId: 397933286
2 parents 480ee04 + 5cd4b7a commit cbe5ec1

File tree

3 files changed

+51
-24
lines changed

3 files changed

+51
-24
lines changed

CHANGELOG.md

Lines changed: 49 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,58 @@ vNext
55
------
66

77
(Add your change to a random empty line to avoid merge conflicts)
8-
-
9-
-
8+
-
9+
-
10+
-
11+
-
12+
-
13+
-
14+
-
15+
-
16+
-
17+
-
18+
-
19+
-
20+
-
21+
-
22+
-
23+
-
24+
-
25+
-
26+
-
27+
-
28+
-
29+
-
30+
-
31+
-
32+
33+
34+
35+
0.3.5
36+
------
37+
38+
Breaking changes:
39+
- You can no longer pass an int as the `kernel_size` for a `flax.linen.Conv.
40+
Instead a type error is raised stating that
41+
a tuple/list should be provided. Stride and dilation arguments do support broadcasting a single int value now because this is not
42+
ambigious when the kernel rank is known.
43+
- `flax.linen.enable_named_call` and `flax.linen.disable_named_call` now work anywhere instead of only affecting Modules constructed after the enable/disable call. Additionally, there is now `flax.linen.override_named_call` that provided a context manager to locally disable/enable named_call.
44+
- NamedTuples are no longer converted to tuples on assignment to a `linen.Module`.
45+
46+
New features:
47+
- Flax internal stack frames are now removed from exception state traces.
48+
- Added `flax.linen.nowrap` to decorate method that should not be transformed
49+
because they are stateful.
1050
- Flax no longer uses implicit rank broadcasting. Thus, you can now use Flax with `--jax_numpy_rank_promotion=raise`.
11-
-
12-
-
13-
-
14-
- NamedTuples are no longer converted to tuples on assingment to a `linen.Module`.
15-
-
16-
-
51+
52+
Bugfixes:
53+
- linen Modules and dataclasses made with `flax.struct.dataclass` or `flax.struct.PyTreeNode` are now correctly recognized as dataclasses by static analysis tools like PyLance. Autocomplete of constructors has been verified to work with VSCode.
1754
- Fixed a bug in FrozenDict which didn't allow copying dicts with reserved names.
18-
-
19-
-
20-
-
21-
- `flax.linen.enable_named_call` and `flax.linen.disable_named_call` now work anywhere instead of only affecting Modules constructed after the enable/disable call. Additionally, there is now `flax.linen.override_named_call` that provided a context manager to locally disable/enable named_call.
22-
-
23-
-
2455
- Fix the serialization of named tuples. Tuple fields are no longer stored in the state dict and the named tuple class is no longer recreated ([bug](https://github.com/google/flax/issues/1429)).
25-
-
26-
- linen Modules and dataclasses made with `flax.struct.dataclass` or `flax.struct.PyTreeNode` are now correctly recognized as dataclasses by static analysis tools like PyLance. Autocomplete of constructors has been verified to work with VSCode.
27-
-
28-
-
29-
- `flax.linen.Conv` no longer interprets an int past as kernel_size as a 1d convolution. Instead a type error is raised stating that
30-
a tuple/list should be provided. Stride and dilation arguments do support broadcasting a single int value now because this is not
31-
ambigious when the kernel rank is known.
32-
-
56+
- Mixed precision training with float16 now works correctly with the attention layers.
57+
- auto-generated linen Module `__hash__`, `__eq__`, `__repr__` no longer fail by default on non-init attributes.
58+
59+
3360

3461
0.3.4
3562
------

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ To cite this repository:
179179
author = {Jonathan Heek and Anselm Levskaya and Avital Oliver and Marvin Ritter and Bertrand Rondepierre and Andreas Steiner and Marc van {Z}ee},
180180
title = {{F}lax: A neural network library and ecosystem for {JAX}},
181181
url = {http://github.com/google/flax},
182-
version = {0.3.4},
182+
version = {0.3.5},
183183
year = {2020},
184184
}
185185
```

flax/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "0.3.4"
15+
__version__ = "0.3.5"
1616

0 commit comments

Comments
 (0)