Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/visualdl mnist #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Feature/visualdl mnist #68

wants to merge 2 commits into from

Conversation

dzhwinter
Copy link
Owner

check for debug

@@ -161,6 +169,11 @@ def run_benchmark(model, args):
end = time.time()
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