We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0e0a14 commit 8e28cf8Copy full SHA for 8e28cf8
source/train/Fitting.py
@@ -194,12 +194,14 @@ def build (self,
194
if self.numb_fparam > 0 :
195
ext_fparam = tf.tile(fparam, [1, natoms[2+type_i]])
196
ext_fparam = tf.reshape(ext_fparam, [-1, self.numb_fparam])
197
+ ext_fparam = tf.cast(ext_fparam,self.fitting_precision)
198
layer = tf.concat([layer, ext_fparam], axis = 1)
199
if self.numb_aparam > 0 :
200
ext_aparam = tf.slice(aparam,
201
[ 0, start_index * self.numb_aparam],
202
[-1, natoms[2+type_i] * self.numb_aparam])
203
ext_aparam = tf.reshape(ext_aparam, [-1, self.numb_aparam])
204
+ ext_aparam = tf.cast(ext_aparam,self.fitting_precision)
205
layer = tf.concat([layer, ext_aparam], axis = 1)
206
start_index += natoms[2+type_i]
207
0 commit comments