Skip to content

Commit af01a2e

Browse files
committed
[GAP9] Fix duplicate L3 Alloc Code generation due to PULP inheritance issueFix duplicate template generation due to PULP inheritance issue
1 parent ccaad61 commit af01a2e

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

Deeploy/Targets/GAP9/Deployer.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import onnx_graphsurgeon as gs
1616

1717
from Deeploy.AbstractDataTypes import Pointer
18+
from Deeploy.CommonExtensions.NetworkDeployers.SignPropDeployer import SignPropDeployer
1819
from Deeploy.DeeployTypes import ConstantBuffer, DeploymentPlatform, NodeTemplate, TopologyOptimizer, VariableBuffer
1920
from Deeploy.Targets.PULPOpen.Deployer import PULPDeployer
2021
from Deeploy.Targets.GAP9.Bindings import GAP9Transformer, GAP9ClusterTransformer, GAP9SimpleTransformer
@@ -68,15 +69,7 @@ def __init__(self,
6869
self.SimpleTransformer = GAP9SimpleTransformer
6970

7071
def generateBufferAllocationCode(self) -> str:
71-
"""
72-
Generate buffer allocation code with GAP9-specific L3 RAM support.
73-
74-
For L3 buffers:
75-
1. Allocate space in APS256XXN OctaSPI RAM using cl_ram_malloc()
76-
2. Load data from ReadFS using load_file_to_ram()
77-
3. Assign extName to enable hex dump generation
78-
"""
79-
retStr = super().generateBufferAllocationCode()
72+
retStr = SignPropDeployer.generateBufferAllocationCode(self)
8073

8174
L3FileStr = ""
8275
globalConstBuffers = [

0 commit comments

Comments
 (0)