Skip to content

Commit b4272ab

Browse files
author
rbodo
committed
Updated docs.
1 parent c971d7a commit b4272ab

34 files changed

+485
-102
lines changed

README.rst

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
Spiking neural network conversion toolbox
22
=========================================
33

4-
The SNN conversion toolbox contains functions to transform rate-based artificial
5-
neural networks into spiking neural networks, and to simulate them. Please
6-
refer to the `Documentation <http://snntoolbox.readthedocs.io>`_ for a complete
7-
user guide and API reference.
4+
The SNN conversion toolbox (SNN-TB) is a framework to transform rate-based
5+
artificial neural networks into spiking neural networks, and to run them using
6+
various spike encodings. A unique feature about SNN-TB is that it accepts input
7+
models from many different deep-learning libraries (Keras / TF, pytorch, ...)
8+
and provides an interface to several backends for simulation (pyNN, brian2,
9+
...) or deployment (SpiNNaker, Loihi).
810

9-
See also the accompanying `article <https://www.frontiersin.org/articles/10.3389/fnins.2017.00682/abstract>`_.
11+
Please
12+
refer to the `Documentation <http://snntoolbox.readthedocs.io>`_ for a complete
13+
user guide and API reference. See also the accompanying articles
14+
`[Rueckauer et al., 2017] <https://www.frontiersin.org/articles/10.3389/fnins.2017.00682/abstract>`_
15+
and `[Rueckauer and Liu, 2018] <https://ieeexplore.ieee.org/abstract/document/8351295/>`_.

changelog.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
SNN Toolbox: Release Notes
22
==========================
33

4+
Version 0.4.1
5+
-------------
6+
7+
The toolbox now supports input models from the PyTorch library.
8+
9+
Thanks to Pengfei Sun for contributing.
10+
411
Version 0.4
512
-----------
613

105 KB
Binary file not shown.

docs/build/doctrees/index.doctree

1.65 KB
Binary file not shown.

docs/build/html/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: a306f404cf002e007091db9367ab68fa
3+
config: e89bb39b701bf96800cc7264d625ca5f
44
tags: 645f666f9bcd5a90fca523b33c5a78b7
7.92 KB
Loading

docs/build/html/_modules/index.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010

11-
<title>Overview: module code &mdash; SNN toolbox 0.3.0 documentation</title>
11+
<title>Overview: module code &mdash; SNN toolbox 0.4.1 documentation</title>
1212

1313

1414

@@ -21,11 +21,11 @@
2121

2222

2323
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
24-
<script type="text/javascript" src="../_static/jquery.js"></script>
25-
<script type="text/javascript" src="../_static/underscore.js"></script>
26-
<script type="text/javascript" src="../_static/doctools.js"></script>
27-
<script type="text/javascript" src="../_static/language_data.js"></script>
28-
<script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
24+
<script src="../_static/jquery.js"></script>
25+
<script src="../_static/underscore.js"></script>
26+
<script src="../_static/doctools.js"></script>
27+
<script src="../_static/language_data.js"></script>
28+
<script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
2929

3030
<script type="text/javascript" src="../_static/js/theme.js"></script>
3131

@@ -59,7 +59,7 @@
5959

6060

6161
<div class="version">
62-
0.3
62+
0.4
6363
</div>
6464

6565

@@ -167,6 +167,7 @@ <h1>All modules for which code is available</h1>
167167
<li><a href="snntoolbox/datasets/utils.html">snntoolbox.datasets.utils</a></li>
168168
<li><a href="snntoolbox/parsing/model_libs/caffe_input_lib.html">snntoolbox.parsing.model_libs.caffe_input_lib</a></li>
169169
<li><a href="snntoolbox/parsing/model_libs/keras_input_lib.html">snntoolbox.parsing.model_libs.keras_input_lib</a></li>
170+
<li><a href="snntoolbox/parsing/model_libs/pytorch_input_lib.html">snntoolbox.parsing.model_libs.pytorch_input_lib</a></li>
170171
<li><a href="snntoolbox/parsing/utils.html">snntoolbox.parsing.utils</a></li>
171172
<li><a href="snntoolbox/simulation/backends/inisim/temporal_mean_rate_tensorflow.html">snntoolbox.simulation.backends.inisim.temporal_mean_rate_tensorflow</a></li>
172173
<li><a href="snntoolbox/simulation/backends/inisim/temporal_mean_rate_theano.html">snntoolbox.simulation.backends.inisim.temporal_mean_rate_theano</a></li>
@@ -183,6 +184,7 @@ <h1>All modules for which code is available</h1>
183184
<li><a href="snntoolbox/simulation/target_simulators/MegaSim_target_sim.html">snntoolbox.simulation.target_simulators.MegaSim_target_sim</a></li>
184185
<li><a href="snntoolbox/simulation/target_simulators/brian2_target_sim.html">snntoolbox.simulation.target_simulators.brian2_target_sim</a></li>
185186
<li><a href="snntoolbox/simulation/target_simulators/pyNN_target_sim.html">snntoolbox.simulation.target_simulators.pyNN_target_sim</a></li>
187+
<li><a href="snntoolbox/simulation/target_simulators/spiNNaker_target_sim.html">snntoolbox.simulation.target_simulators.spiNNaker_target_sim</a></li>
186188
<li><a href="snntoolbox/simulation/utils.html">snntoolbox.simulation.utils</a></li>
187189
<li><a href="snntoolbox/utils/utils.html">snntoolbox.utils.utils</a></li>
188190
</ul>
@@ -197,9 +199,9 @@ <h1>All modules for which code is available</h1>
197199

198200
<div role="contentinfo">
199201
<p>
200-
&copy; Copyright 2019, Bodo Rueckauer
202+
&copy; Copyright 2020, Bodo Rueckauer
201203
<span class="lastupdated">
202-
Last updated on Oct 12, 2019.
204+
Last updated on Mar 07, 2020.
203205
</span>
204206

205207
</p>

docs/build/html/_static/basic.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx stylesheet -- basic theme.
66
*
7-
* :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -672,6 +672,10 @@ div.code-block-caption + div > div.highlight > pre {
672672
margin-top: 0;
673673
}
674674

675+
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
676+
user-select: none;
677+
}
678+
675679
div.code-block-caption span.caption-number {
676680
padding: 0.1em 0.3em;
677681
font-style: italic;

docs/build/html/_static/doctools.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx JavaScript utilities for all documentation.
66
*
7-
* :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -283,10 +283,11 @@ var Documentation = {
283283
},
284284

285285
initOnKeyListeners: function() {
286-
$(document).keyup(function(event) {
286+
$(document).keydown(function(event) {
287287
var activeElementType = document.activeElement.tagName;
288288
// don't navigate when in search box or textarea
289-
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT') {
289+
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
290+
&& !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
290291
switch (event.keyCode) {
291292
case 37: // left
292293
var prevHref = $('link[rel="prev"]').prop('href');

docs/build/html/_static/searchtools.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx JavaScript utilities for the full-text search.
66
*
7-
* :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -63,6 +63,11 @@ var Search = {
6363
htmlElement.innerHTML = htmlString;
6464
$(htmlElement).find('.headerlink').remove();
6565
docContent = $(htmlElement).find('[role=main]')[0];
66+
if(docContent === undefined) {
67+
console.warn("Content block not found. Sphinx search tries to obtain it " +
68+
"via '[role=main]'. Could you check your theme or template.");
69+
return "";
70+
}
6671
return docContent.textContent || docContent.innerText;
6772
},
6873

@@ -245,31 +250,32 @@ var Search = {
245250
if (results.length) {
246251
var item = results.pop();
247252
var listItem = $('<li style="display:none"></li>');
248-
if (DOCUMENTATION_OPTIONS.FILE_SUFFIX === '') {
253+
var requestUrl = "";
254+
if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') {
249255
// dirhtml builder
250256
var dirname = item[0] + '/';
251257
if (dirname.match(/\/index\/$/)) {
252258
dirname = dirname.substring(0, dirname.length-6);
253259
} else if (dirname == 'index/') {
254260
dirname = '';
255261
}
256-
listItem.append($('<a/>').attr('href',
257-
DOCUMENTATION_OPTIONS.URL_ROOT + dirname +
258-
highlightstring + item[2]).html(item[1]));
262+
requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + dirname;
263+
259264
} else {
260265
// normal html builders
261-
listItem.append($('<a/>').attr('href',
262-
item[0] + DOCUMENTATION_OPTIONS.FILE_SUFFIX +
263-
highlightstring + item[2]).html(item[1]));
266+
requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + item[0] + DOCUMENTATION_OPTIONS.FILE_SUFFIX;
264267
}
268+
listItem.append($('<a/>').attr('href',
269+
requestUrl +
270+
highlightstring + item[2]).html(item[1]));
265271
if (item[3]) {
266272
listItem.append($('<span> (' + item[3] + ')</span>'));
267273
Search.output.append(listItem);
268274
listItem.slideDown(5, function() {
269275
displayNextItem();
270276
});
271277
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
272-
$.ajax({url: DOCUMENTATION_OPTIONS.URL_ROOT + item[0] + DOCUMENTATION_OPTIONS.FILE_SUFFIX,
278+
$.ajax({url: requestUrl,
273279
dataType: "text",
274280
complete: function(jqxhr, textstatus) {
275281
var data = jqxhr.responseText;
@@ -424,15 +430,15 @@ var Search = {
424430
for (j = 0; j < _files.length; j++) {
425431
file = _files[j];
426432
if (!(file in scoreMap))
427-
scoreMap[file] = {}
433+
scoreMap[file] = {};
428434
scoreMap[file][word] = o.score;
429435
}
430436
});
431437

432438
// create the mapping
433439
for (j = 0; j < files.length; j++) {
434440
file = files[j];
435-
if (file in fileMap)
441+
if (file in fileMap && fileMap[file].indexOf(word) === -1)
436442
fileMap[file].push(word);
437443
else
438444
fileMap[file] = [word];

0 commit comments

Comments
 (0)