From bb792644ba7097e39d31a563dca57dd221a21380 Mon Sep 17 00:00:00 2001 From: LiangWenshuo1118 <73432685+LiangWenshuo1118@users.noreply.github.com> Date: Mon, 5 Dec 2022 10:23:48 +0800 Subject: [PATCH] Update python.md Signed-off-by: LiangWenshuo1118 <73432685+LiangWenshuo1118@users.noreply.github.com> --- doc/inference/python.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/inference/python.md b/doc/inference/python.md index bdf9074a86..364da1b761 100644 --- a/doc/inference/python.md +++ b/doc/inference/python.md @@ -23,4 +23,6 @@ cell = np.diag(10 * np.ones(3)).reshape([1, -1]) atype = [1,0,1] graphs = [DP("graph.000.pb"), DP("graph.001.pb")] model_devi = calc_model_devi(coord, cell, atype, graphs) -``` \ No newline at end of file +``` + +Note that if the model inference or model deviation is performed cyclically, one should avoid calling the same model multiple times. Otherwise, tensorFlow will never release the memory and this may lead to an out-of-memory (OOM) error.