File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -506,7 +506,9 @@ def serialize(self) -> dict:
506506 "precision" : RESERVED_PRECISION_DICT [obj .prec ],
507507 "embeddings" : obj .filter_layers .serialize (),
508508 "attention_layers" : obj .dpa1_attention .serialize (),
509- "env_mat" : DPEnvMat (obj .rcut , obj .rcut_smth ).serialize (),
509+ "env_mat" : DPEnvMat (
510+ obj .rcut , obj .rcut_smth , obj .env_protection
511+ ).serialize (),
510512 "type_embedding" : self .type_embedding .embedding .serialize (),
511513 "exclude_types" : obj .exclude_types ,
512514 "env_protection" : obj .env_protection ,
Original file line number Diff line number Diff line change @@ -337,7 +337,9 @@ def serialize(self) -> dict:
337337 # make deterministic
338338 "precision" : RESERVED_PRECISION_DICT [obj .prec ],
339339 "embeddings" : obj .filter_layers .serialize (),
340- "env_mat" : DPEnvMat (obj .rcut , obj .rcut_smth ).serialize (),
340+ "env_mat" : DPEnvMat (
341+ obj .rcut , obj .rcut_smth , obj .env_protection
342+ ).serialize (),
341343 "exclude_types" : obj .exclude_types ,
342344 "env_protection" : obj .env_protection ,
343345 "@variables" : {
Original file line number Diff line number Diff line change @@ -508,7 +508,9 @@ def serialize(self) -> dict:
508508 "precision" : RESERVED_PRECISION_DICT [obj .prec ],
509509 "embeddings" : obj .filter_layers .serialize (),
510510 "attention_layers" : obj .dpa1_attention .serialize (),
511- "env_mat" : DPEnvMat (obj .rcut , obj .rcut_smth ).serialize (),
511+ "env_mat" : DPEnvMat (
512+ obj .rcut , obj .rcut_smth , obj .env_protection
513+ ).serialize (),
512514 "type_embedding" : self .type_embedding .embedding .serialize (),
513515 "exclude_types" : obj .exclude_types ,
514516 "env_protection" : obj .env_protection ,
Original file line number Diff line number Diff line change @@ -381,7 +381,9 @@ def serialize(self) -> dict:
381381 # make deterministic
382382 "precision" : RESERVED_PRECISION_DICT [obj .prec ],
383383 "embeddings" : obj .filter_layers .serialize (),
384- "env_mat" : DPEnvMat (obj .rcut , obj .rcut_smth ).serialize (),
384+ "env_mat" : DPEnvMat (
385+ obj .rcut , obj .rcut_smth , obj .env_protection
386+ ).serialize (),
385387 "exclude_types" : obj .exclude_types ,
386388 "env_protection" : obj .env_protection ,
387389 "@variables" : {
Original file line number Diff line number Diff line change @@ -415,7 +415,9 @@ def serialize(self) -> dict:
415415 "activation_function" : obj .activation_function ,
416416 "precision" : RESERVED_PRECISION_DICT [obj .prec ],
417417 "embeddings" : obj .filter_layers .serialize (),
418- "env_mat" : DPEnvMat (obj .rcut , obj .rcut_smth ).serialize (),
418+ "env_mat" : DPEnvMat (
419+ obj .rcut , obj .rcut_smth , obj .env_protection
420+ ).serialize (),
419421 "exclude_types" : obj .exclude_types ,
420422 "env_protection" : obj .env_protection ,
421423 "type_map" : self .type_map ,
You can’t perform that action at this time.
0 commit comments