alibaba / alibaba/x-deeplearning

build_final_net return a tuple but use as list

Open
#360 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PureBasic
Stars
4.3k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

build_final_net 函数返回的是train_ops[0], train_ops[1:] 的tuple,但是在train.py中使用了train_ops.append(xdl.Adam(lr).optimize())

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the build_final_net function and its return value, then compare it with the train_ops.append usage in train.py. Confirm the intended collection type and make the return value compatible with the append operation; done means the optimizer can be added without a tuple/list error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.