Skip to content

[BUG] Incorrect Input/Output Name Matching in dumpBuffer #41

@runwangdl

Description

@runwangdl

Describe the bug

In /app/Deeploy/DeeployTest/testUtils/codeGenerate.py, line 270, the dumpBuffer function checks whether a node is categorized as input or output. However, this condition is based on substring matching, which can lead to incorrect classification when a node's name contains "input" or "output" as part of its name.

To Reproduce

Define a model with a node that has "input" or "output" in its name (e.g., "conv_input_norm" or "dense_output_act").
Run the test script that calls dumpBuffer.
Observe that the function incorrectly classifies the node as an input or output.

Expected behavior

The function should correctly distinguish between actual model inputs/outputs and regular node names that contain "input" or "output" as a substring.

Additional context

This issue can cause unintended behavior in test utilities that rely on dumpBuffer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions