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.