-
Notifications
You must be signed in to change notification settings - Fork 21
Description
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.