Skip to content

Conversation

@dzhwinter
Copy link
Owner

check for debug

loss = np.array(outs[0])
acc = np.array(outs[1])

loss_scalar.add_record(step, loss)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loss 必须是一个 scalar,就是个数字,而非 numpy 或 list

pybind 直接会类型错误

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please throw an exception instead of terminating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants