提交 e6c28438 编写于 作者: L LielinJiang

fix sample code, test=document_fix

上级 e7818d37
...@@ -497,8 +497,9 @@ class VisualDL(Callback): ...@@ -497,8 +497,9 @@ class VisualDL(Callback):
loss=paddle.nn.CrossEntropyLoss(), loss=paddle.nn.CrossEntropyLoss(),
metrics=paddle.metric.Accuracy()) metrics=paddle.metric.Accuracy())
callback = paddle.callbacks.VisualDL(log_dir='visualdl_log_dir') # uncomment following lines to fit model with visualdl callback function
model.fit(train_dataset, eval_dataset, batch_size=64, callbacks=callback) # callback = paddle.callbacks.VisualDL(log_dir='visualdl_log_dir')
# model.fit(train_dataset, eval_dataset, batch_size=64, callbacks=callback)
""" """
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册