优化bp结点

This commit is contained in:
boyce
2025-11-05 17:01:43 +08:00
parent fac7a323e1
commit f8953d1764
3 changed files with 7 additions and 7 deletions

View File

@@ -155,7 +155,7 @@ func (en *execNode) Do(gr *Graph, outPortArgs ...any) error {
startOutIdx := en.execNode.GetOutPortParamStartIndex()
for i := 0; i < len(outPortArgs); i++ {
if i >= len(outPorts) {
if i+startOutIdx >= len(outPorts) {
return fmt.Errorf("args %d not found in node %s", i, en.execNode.GetName())
}