Skip to content

[BUG] should set DeeployNetwork_input_0 to static variable #151

@pauloohaha

Description

@pauloohaha

Describe the bug

When trying to stitch multiple Deeploy generated modules together, each of them should have their own DeeployNetwork_MEMORYARENA_L1/2/3, DeeployNetwork_input_0/1/2... and DeeployNetwork_output_0/1/2.... Compiler confused these variables from different module and mistakenly share them, leading to the later initialized networks modify these variables from earlier initialized modules. They should be set to static variable.

To Reproduce

Integrate two Deeploy generated modules with different input/output offset. Initialze them one by one. We can see the second initialzied module will modfiy the DeeployNetwork_input_0 variable in the first initialzied module.

Expected behavior

These variable should be isolated in different Deeploy generated modules. They should be set as static.

Additional context

No.

Metadata

Metadata

Labels

BugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions