From 7b79ede84c09fa0c078b746022e2e711723f319c Mon Sep 17 00:00:00 2001 From: YWolfeee <1800017704@pku.edu.cn> Date: Fri, 23 Apr 2021 08:29:40 +0000 Subject: [PATCH] close loss normalization, since it need further examination --- deepmd/loss/tensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deepmd/loss/tensor.py b/deepmd/loss/tensor.py index 91601d40e0..4bac9f70e1 100644 --- a/deepmd/loss/tensor.py +++ b/deepmd/loss/tensor.py @@ -79,7 +79,8 @@ def build (self, polar = model_dict[self.tensor_name] # YWolfeee: get the 2 norm of label, i.e. polar_hat - normalized_term = tf.sqrt(tf.reduce_sum(tf.square(polar_hat))) + #normalized_term = tf.sqrt(tf.reduce_sum(tf.square(polar_hat))) + normalized_term = global_cvt_2_tf_float(1.0) # YHT: added for global / local dipole combination l2_loss = global_cvt_2_tf_float(0.0)