-
Notifications
You must be signed in to change notification settings - Fork 22
/
.nengobones.yml
294 lines (281 loc) · 9.52 KB
/
.nengobones.yml
1
2
3
4
5
6
7
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
project_name: NengoDL
pkg_name: nengo_dl
repo_name: nengo/nengo-dl
description: Deep learning integration for Nengo
copyright_start: 2015
license: abr-free
main_branch: main
min_python: "3.7"
license_rst: {}
contributing_rst: {}
# contributors_rst: {}
manifest_in:
prune:
- docs/whitepaper
- tmp
global-exclude:
- "*.bat"
- "*.svg"
setup_cfg:
pytest:
addopts:
- --disable-warnings
filterwarnings:
- always
xfail_strict: True
nengo_simloader: nengo_dl.tests.make_test_sim
nengo_test_unsupported:
tests/test_simulator.py::test_warn_on_opensim_del:
nengo-dl raises a different (more visible) warning, see
tests/test_nengo_tests.py::test_warn_on_opensim_del
tests/test_simulator.py::test_signal_init_values:
different method required to manually step simulator, see
tests/test_nengo_tests.py::test_signal_init_values
tests/test_simulator.py::test_entry_point:
overridden so we can pass custom test simulators, see
tests/test_nengo_tests.py::test_entry_point
tests/test_simulator.py::test_simulator_progress_bars:
nengo-dl uses a different progress bar system, see
tests/test_utils.py::test_progress_bar
tests/test_simulator.py::test_dtype[*:
nengo-dl uses a different system for signals/dtype, see
tests/test_nengo_tests.py::test_dtype
tests/test_simulator.py::test_time_absolute:
simulation times may not line up exactly if unroll_simulation != 1, see
tests/test_nengo_tests.py::test_time_absolute
tests/test_simulator.py::test_invalid_run_time:
simulation times may not line up exactly if unroll_simulation != 1, see
tests/test_nengo_tests.py::test_invalid_run_time
tests/test_simulator.py::test_steps:
simulation times may not line up exactly if unroll_simulation != 1, see
tests/test_nengo_tests.py::test_steps
tests/test_node.py::test_args:
time is passed as np.float32, not a float, see
tests/test_nengo_tests.py::test_args
tests/test_node.py::test_unconnected_node:
need to set `unroll_simulation` to ensure node runs the correct
number of times, see
tests/test_nengo_tests.py::test_unconnected_node
tests/test_ensemble.py::test_gain_bias:
use allclose instead of array_equal, see
tests/test_nengo_tests.py::test_gain_bias
tests/test_transforms.py::test_sparse[False-*:
nengo-dl doesn't raise a warning for scipy=False, see
tests/test_nengo_tests.py::test_sparse
tests/test_copy.py::test_pickle_sim[*:
nengo-dl does not support pickling a Simulator, see
tests/test_simulator.py::test_pickle_error
tests/test_probe.py::test_multirun:
simulation times may not line up exactly if unroll_simulation != 1, see
tests/test_nengo_tests.py::test_multirun
tests/test_learning_rules.py::test_rls_*: RLS learning rule not implemented
tests/test_processes.py::test_x_copy:
the behaviour of Processes that return None is not well defined (it's allowed
but behaves oddly in NengoCore, it's an explicit error in NengoDL)
allclose_tolerances:
- tests/test_synapses.py::test_lowpass atol=5e-7
- tests/test_synapses.py::test_triangle atol=5e-7
- tests/test_synapses.py::test_decoders atol=5e-7
- tests/test_synapses.py::test_alpha atol=5e-5
- tests/test_synapses.py::test_linearfilter atol=1e-4
- tests/test_transforms.py::test_convolution[* atol=1e-6
- tests/test_transforms_conv.py::test_convolution[* atol=1e-4
- tests/test_transforms_conv.py::test_convolution_groups[* atol=1e-4
pylint:
known_third_party:
- PIL
- packaging
- progressbar
- tensorflow
coverage:
omit_files:
- "*/tests/dummies.py"
flake8:
ignore:
- C901
docs_conf_py:
extensions:
- sphinx_click.ext
- nengo_sphinx_theme.ext.autoautosummary
- nengo_sphinx_theme.ext.resolvedefaults
nengo_logo: nengo-dl-full-light.svg
nengo_logo_color: "#ff6600"
sphinx_options:
suppress_warnings: "['image.nonlocal_uri']"
doctest_setup:
- import nengo
- import numpy as np
- import tensorflow as tf
html_redirects:
frontend.html: user-guide.html
backend.html: reference.html#developers
builder.html: reference.html#builder
extra_objects.html: reference.html#neuron-types
graph_optimizer.html: reference.html#graph-optimization
operators.html: reference.html#operator-builders
learning_rules.html: reference.html#operator-builders
neurons.html: reference.html#operator-builders
op_builders.html: reference.html#operator-builders
processes.html: reference.html#operator-builders
tensor_node_builders.html: reference.html#operator-builders
signals.html: reference.html#signals
tensor_graph.html: reference.html#graph-construction
utils.html: reference.html#utilities
tensor_node.html: tensor-node.html
examples/nef_init.html: examples/nef-init.html
examples/pretrained_model.html: examples/pretrained-model.html
examples/spa_memory.html: examples/spa-memory.html
examples/spa_retrieval.html: examples/spa-retrieval.html
examples/spiking_mnist.html: examples/spiking-mnist.html
examples/pretrained-model.html: examples/tensorflow-models.html
training.html: simulator.html
autoautosummary_change_modules:
nengo_dl:
- nengo_dl.config.configure_settings
- nengo_dl.neurons.SoftLIFRate
- nengo_dl.neurons.LeakyReLU
- nengo_dl.neurons.SpikingLeakyReLU
ci_scripts:
- template: static
pre_commands:
- export SHELLCHECK_OPTS="-e SC2086"
- template: test
pip_install:
- $NUMPY_VERSION
- $TF_VERSION
- $NENGO_VERSION
- $SCIPY_VERSION
- git+https://github.com/drasmuss/spaun2.0.git
nengo_tests: true
- template: test
output_name: test-coverage
coverage: true
pip_install:
- --pre
- $NUMPY_VERSION
- $TF_VERSION
- $NENGO_VERSION
- $SCIPY_VERSION
- git+https://github.com/drasmuss/spaun2.0.git
- keras-spiking
nengo_tests: true
- template: test
output_name: test-performance
coverage: true
pip_install:
- $NUMPY_VERSION
- $TF_VERSION
- $NENGO_VERSION
- $SCIPY_VERSION
- git+https://github.com/drasmuss/spaun2.0.git
nengo_tests: true
pre_commands:
- python -c "import tensorflow as tf; assert tf.test.is_gpu_available()"
- pytest $TEST_ARGS nengo_dl/tests/test_benchmarks.py::test_performance --performance -v --durations 20 --color=yes
- template: examples
pip_install:
- $TF_VERSION
- $NUMPY_VERSION
- $NENGO_VERSION
pre_commands:
- python -c "import tensorflow as tf; assert tf.test.is_gpu_available()"
- template: docs
pip_install:
- $TF_VERSION
- $NUMPY_VERSION
- $NENGO_VERSION
pre_commands:
- python -c "import tensorflow as tf; assert tf.test.is_gpu_available()"
- template: remote-script
remote_script: test-performance
output_name: remote-test
host: azure
coverage: true
azure_name: nengo-dl
azure_group: nengo-ci
remote_vars:
TF_FORCE_GPU_ALLOW_GROWTH: "true"
NUMPY_VERSION: $NUMPY_VERSION
TF_VERSION: $TF_VERSION
NENGO_VERSION: $NENGO_VERSION
SCIPY_VERSION: $SCIPY_VERSION
remote_setup:
- micromamba install -y "$TF_VERSION"
- template: remote-script
remote_script: docs
output_name: remote-docs
host: azure-docs
azure_name: nengo-dl-docs
azure_group: nengo-ci
remote_vars:
NUMPY_VERSION: $NUMPY_VERSION
TF_VERSION: $TF_VERSION
NENGO_VERSION: $NENGO_VERSION
SCIPY_VERSION: $SCIPY_VERSION
remote_setup:
- micromamba install -y "$TF_VERSION"
- template: remote-script
remote_script: examples
output_name: remote-examples
host: azure-examples
azure_name: nengo-dl-examples
azure_group: nengo-ci
remote_vars:
NUMPY_VERSION: $NUMPY_VERSION
TF_VERSION: $TF_VERSION
NENGO_VERSION: $NENGO_VERSION
SCIPY_VERSION: $SCIPY_VERSION
remote_setup:
- micromamba install -y "$TF_VERSION"
- template: deploy
setup_py:
include_package_data: True
optional_req:
- keras-spiking>=0.3.0
docs_req:
- click>=6.7 # needed for sphinx-click
- jupyter>=1.0.0
- matplotlib>=2.0.0
- nbsphinx>=0.3.5
- nengo-sphinx-theme>=1.2.1
- numpydoc>=0.6.0
- Pillow>=4.1.1
- sphinx>=3.0.0
- sphinx-click>=1.4.1
tests_req:
- click>=6.7
- matplotlib>=2.0.0
- nbval>=0.6.0
- pytest>=3.6.0
- pytest-allclose>=1.0.0
- pytest-cov>=2.6.0
- pytest-rng>=1.0.0
- pytest-xdist>=1.16.0
- six>=1.11.0 # hint for pip dependency resolution, required by nbval
entry_points:
nengo.backends:
- dl = nengo_dl:Simulator
classifiers:
- "Development Status :: 5 - Production/Stable"
- "Framework :: Nengo"
- "Intended Audience :: Science/Research"
- "Operating System :: Microsoft :: Windows"
- "Operating System :: POSIX :: Linux"
- "Programming Language :: Python"
- "Programming Language :: Python :: 3.7"
- "Programming Language :: Python :: 3.8"
- "Programming Language :: Python :: 3.9"
- "Programming Language :: Python :: 3.10"
- "Topic :: Scientific/Engineering"
- "Topic :: Scientific/Engineering :: Artificial Intelligence"
pyproject_toml:
exclude:
- "'*/whitepaper2018_code.py'"
pre_commit_config_yaml:
exclude:
- "'*/whitepaper2018_code.py'"
version_py:
major: 3
minor: 6
patch: 1
release: false