From fc38d7d21f8fc7854c5ceb58e509054a9b06e01e Mon Sep 17 00:00:00 2001 From: Christophe Favergeon Date: Mon, 23 Jan 2023 11:32:25 +0100 Subject: [PATCH] Some corrections to the compute graph README. --- ComputeGraph/README.md | 2 +- ComputeGraph/documentation/example1.md | 4 ++-- ComputeGraph/documentation/example3.md | 4 ++-- ComputeGraph/documentation/example4.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ComputeGraph/README.md b/ComputeGraph/README.md index da38aefb..c542180e 100644 --- a/ComputeGraph/README.md +++ b/ComputeGraph/README.md @@ -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. diff --git a/ComputeGraph/documentation/example1.md b/ComputeGraph/documentation/example1.md index 6c30dd31..e2c470c7 100644 --- a/ComputeGraph/documentation/example1.md +++ b/ComputeGraph/documentation/example1.md @@ -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) diff --git a/ComputeGraph/documentation/example3.md b/ComputeGraph/documentation/example3.md index 9ab12e24..511db217 100644 --- a/ComputeGraph/documentation/example3.md +++ b/ComputeGraph/documentation/example3.md @@ -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 * ``` diff --git a/ComputeGraph/documentation/example4.md b/ComputeGraph/documentation/example4.md index 19ec9fb9..b64b9cad 100644 --- a/ComputeGraph/documentation/example4.md +++ b/ComputeGraph/documentation/example4.md @@ -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 * ```