Skip to content

Feature/visualdl mnist#68

Open
dzhwinter wants to merge 2 commits into
masterfrom
feature/visualdl_mnist
Open

Feature/visualdl mnist#68
dzhwinter wants to merge 2 commits into
masterfrom
feature/visualdl_mnist

Conversation

@dzhwinter
Copy link
Copy Markdown
Owner

check for debug

Comment thread fluid/mnist.py
loss = np.array(outs[0])
acc = np.array(outs[1])

loss_scalar.add_record(step, loss)
Copy link
Copy Markdown

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
Copy Markdown
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