You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/simulating_networks.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,12 +156,12 @@ Performance profiling
156
156
---------------------
157
157
GeNN provides timers to profile the performance of different simulation phases.
158
158
This is useful for identifying bottlenecks and optimizing your models.
159
-
To enable timing measurements, set :attr:`.ModelSpec.timing` to ``True`` before building the model:
159
+
To enable timing measurements, set :attr:`.ModelSpec.timing_enabled` to ``True`` before building the model:
160
160
161
161
.. code-block:: python
162
162
163
163
model = GeNNModel("float", "profiled_model")
164
-
model.timing=True
164
+
model.timing_enabled=True
165
165
166
166
# ... add populations and synapses ...
167
167
@@ -209,7 +209,7 @@ All timing values accumulate over the lifetime of the model and are returned in
209
209
.. note::
210
210
211
211
Enabling timing adds synchronization overhead on GPU backends which may affect
212
-
performance. Timing counters are only meaningful when ``timing`` is set to
212
+
performance. Timing counters are only meaningful when ``timing_enabled`` is set to
213
213
``True`` before building the model.
214
214
215
215
.. _section-dynamic-parameters:
@@ -218,7 +218,7 @@ All timing values accumulate over the lifetime of the model and are returned in
218
218
Dynamic parameters
219
219
------------------
220
220
As discussed previously, when building a model, parameters can be made dynamic e.g. by calling :meth:`pygenn.NeuronGroup.set_param_dynamic` on a :class:`.NeuronGroup`.
221
-
The values of these parameters can then be set at runtime using the :meth:`pygenn.GroupMixin.set_dynamic_param_value` method. For example to increase the value of a
221
+
The values of these parameters can then be set at runtime using the :meth:`pygenn.genn_groups.GroupMixin.set_dynamic_param_value` method. For example to increase the value of a
222
222
parameter called "tau" on a population ``pop``, you could do the following:
0 commit comments