From e2f81130d38f1f8ac1818a9f121384e6a1e9ec92 Mon Sep 17 00:00:00 2001 From: Steffy-zxf <48793257+Steffy-zxf@users.noreply.github.com> Date: Mon, 15 Jun 2020 11:09:36 +0800 Subject: [PATCH] Update finetuned_model_to_module.md --- docs/tutorial/finetuned_model_to_module.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/finetuned_model_to_module.md b/docs/tutorial/finetuned_model_to_module.md index 853501e6..dff994b4 100644 --- a/docs/tutorial/finetuned_model_to_module.md +++ b/docs/tutorial/finetuned_model_to_module.md @@ -192,7 +192,7 @@ def predict(self, data, return_result=False, accelerate_mode=True): prediction = [] for batch_result in results: # get predict index - batch_result = np.argmax(batch_result, axis=2)[0] + batch_result = np.argmax(batch_result[0], axis=1) batch_result = batch_result.tolist() prediction += batch_result return prediction -- GitLab