Skip to content

Commit

Permalink
Fix README.md Example Code (#94)
Browse files Browse the repository at this point in the history
 Use Loihi1SimCfg in README.md example
  • Loading branch information
mgkwill authored Nov 29, 2021
1 parent 81336e6 commit 724b757
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,12 @@ dense.out_ports.a_out.connect(lif2.in_ports.a_in)

# Execute process lif1 and all processes connected to it for fixed number of steps
from lava.magma.core.run_conditions import RunSteps
from lava.magma.core.run_configs import RunConfig
lif1.run(condition=RunSteps(num_steps=10), run_cfg=SimpleRunConfig(
sync_domains=[]))
from lava.magma.core.run_configs import \
RunConfig, Loihi1SimCfg

lif1.run(condition=RunSteps(num_steps=10),
run_cfg=Loihi1SimCfg(custom_sync_domains=[])
)
lif1.stop()

```
Expand Down Expand Up @@ -272,7 +275,7 @@ class PyLifModel(PyLoihiProcessModel):

In contrast this process model also implements the LIF process but by structurally allocating neural network resources on a virtual Loihi 1 neuro core.
```python
from lava.proc.lif.process import LIF
from lava.proc.lif.process import LIF
from lava.magma.core.decorator import implements, requires
from lava.magma.core.resources import Loihi1NeuroCore
from lava.magma.core.model.nc.model import NcLoihiProcessModel
Expand Down

0 comments on commit 724b757

Please sign in to comment.