Some corrections to the compute graph README.

pull/94/head
Christophe Favergeon 3 years ago
parent fab8a1e6a8
commit fc38d7d21f

@ -110,7 +110,7 @@ The functions and classes inside the cmsisdsp wrapper can be used to describe an
To start, you can create a `graph.py` file and include :
```python
from cmsisdsp.cg.static.scheduler import *
from cmsisdsp.cg.scheduler import *
```
In this file, you can describe new type of blocks that you need in the compute graph if they are not provided by the python package by default.

@ -26,7 +26,7 @@ Let's analyze the file `graph.py` in the `example1` folder. This file is describ
First, we add some path so that the example can find the CG static packages when run from example1 folder.
```python
from cmsisdsp.cg.static.scheduler import *
from cmsisdsp.cg.scheduler import *
```
@ -93,7 +93,7 @@ class ProcessingNode(Node):
We just define its type.
Once it is done, we can start creating instance of those nodes. We will also need to define the type for the samples (float32 in this example). The functions and constants are defined in `cg.static.types`.
Once it is done, we can start creating instance of those nodes. We will also need to define the type for the samples (float32 in this example). The functions and constants are defined in `cg.types`.
```python
floatType=CType(F32)

@ -98,7 +98,7 @@ The run function is applying the `arm_cfft_f32`. Since this function is modifyin
This node is provided in `cg/static/nodes/cpp` so no need to define it. You can just use it by including the right headers.
This node is provided in `cg/nodes/cpp` so no need to define it. You can just use it by including the right headers.
It can be used by just doing in your `AppNodes.h` file :
@ -109,6 +109,6 @@ It can be used by just doing in your `AppNodes.h` file :
From Python side it would be:
```python
from cmsisdsp.cg.static.nodes.CFFT import *
from cmsisdsp.cg.nodes.CFFT import *
```

@ -30,7 +30,7 @@ This file is defining the new nodes which were used in `graph.py`. In `graph.py`
In `appnodes.py` we including new kind of nodes for simulation purpose:
```python
from cmsisdsp.cg.static.nodes.CFFT import *
from cmsisdsp.cg.nodes.CFFT import *
```

Loading…
Cancel
Save