File tree Expand file tree Collapse file tree 5 files changed +29
-1
lines changed Expand file tree Collapse file tree 5 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ docs_conf_py:
59
59
doctest_setup :
60
60
- import numpy as np
61
61
- import tensorflow as tf
62
+ sphinx_options :
63
+ autodoc_inherit_docstrings : False
62
64
63
65
travis_yml :
64
66
python : 3.8
Original file line number Diff line number Diff line change @@ -22,10 +22,19 @@ Release history
22
22
0.4.1 (unreleased)
23
23
==================
24
24
25
+ *Compatible with TensorFlow 2.1 - 2.8 *
26
+
27
+ **Added **
28
+
29
+ - Added support for TensorFlow 2.8. (`#46 `_)
30
+
31
+ .. _#46 : https://github.com/nengo/keras-lmu/pull/46
25
32
26
33
0.4.0 (August 16, 2021)
27
34
=======================
28
35
36
+ *Compatible with TensorFlow 2.1 - 2.7 *
37
+
29
38
**Added **
30
39
31
40
- Setting ``kernel_initializer=None `` now removes the dense input kernel. (`#40 `_)
Original file line number Diff line number Diff line change 85
85
default_role = "py:obj"
86
86
pygments_style = "sphinx"
87
87
user_agent = "keras_lmu"
88
+ autodoc_inherit_docstrings = False
88
89
89
90
project = "KerasLMU"
90
91
authors = "Applied Brain Research"
Original file line number Diff line number Diff line change 11
11
else :
12
12
from keras .layers .recurrent import DropoutRNNCellMixin
13
13
14
+ if version .parse (tf .__version__ ) < version .parse (
15
+ "2.8.0rc0"
16
+ ): # pylint: disable=ungrouped-imports
17
+ from tensorflow .keras .layers import Layer as BaseRandomLayer
18
+ else :
19
+ from keras .engine .base_layer import BaseRandomLayer
20
+
14
21
15
- class LMUCell (DropoutRNNCellMixin , tf . keras . layers . Layer ):
22
+ class LMUCell (DropoutRNNCellMixin , BaseRandomLayer ):
16
23
"""
17
24
Implementation of LMU cell (to be used within Keras RNN wrapper).
18
25
Original file line number Diff line number Diff line change
1
+ # pylint: disable=missing-docstring
2
+
3
+ import tensorflow as tf
4
+ from packaging import version
5
+
6
+
7
+ def pytest_configure (config ):
8
+ if version .parse (tf .__version__ ) >= version .parse ("2.7.0" ):
9
+ tf .debugging .disable_traceback_filtering ()
You can’t perform that action at this time.
0 commit comments