From 47c7e62f643ecfb2679ff277041c68baadb120f7 Mon Sep 17 00:00:00 2001 From: changzherui Date: Tue, 14 Jul 2020 23:22:25 +0800 Subject: [PATCH] modify cb_param.loss for callback --- .../source_en/advanced_use/customized_debugging_information.md | 2 +- .../advanced_use/customized_debugging_information.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/source_en/advanced_use/customized_debugging_information.md b/tutorials/source_en/advanced_use/customized_debugging_information.md index 3e185209..a47c4247 100644 --- a/tutorials/source_en/advanced_use/customized_debugging_information.md +++ b/tutorials/source_en/advanced_use/customized_debugging_information.md @@ -111,7 +111,7 @@ class StopAtTime(Callback): cb_params = run_context.original_args() epoch_num = cb_params.cur_epoch_num step_num = cb_params.cur_step_num - loss = cb_params.cb_params + loss = cb_params.net_outputs cur_time = time.time() if (cur_time - cb_params.init_time) > self.run_time: print("epoch: ", epoch_num, " step: ", step_num, " loss: ", loss) diff --git a/tutorials/source_zh_cn/advanced_use/customized_debugging_information.md b/tutorials/source_zh_cn/advanced_use/customized_debugging_information.md index 2e25b94c..bdab0e0b 100644 --- a/tutorials/source_zh_cn/advanced_use/customized_debugging_information.md +++ b/tutorials/source_zh_cn/advanced_use/customized_debugging_information.md @@ -110,7 +110,7 @@ class StopAtTime(Callback): cb_params = run_context.original_args() epoch_num = cb_params.cur_epoch_num step_num = cb_params.cur_step_num - loss = cb_params.cb_params + loss = cb_params.net_outputs cur_time = time.time() if (cur_time - cb_params.init_time) > self.run_time: print("epoch: ", epoch_num, " step: ", step_num, " loss: ", loss) -- GitLab