Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions deepmd/descriptor/se_a_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,16 @@ def prod_force_virial(
atom_virial = tf.zeros([1, natoms[1], 9], dtype=force.dtype)

return force, virial, atom_virial

@classmethod
def update_sel(cls, global_jdata: dict, local_jdata: dict):
"""Update the selection and perform neighbor statistics.

Parameters
----------
global_jdata : dict
The global data, containing the training section
local_jdata : dict
The local data refer to the current class
"""
return local_jdata
4 changes: 2 additions & 2 deletions examples/zinc_protein/zinc_se_a_mask.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@
"training": {
"training_data": {
"systems": [
"example/zinc_protein/train_data_dp_mask/"
"examples/zinc_protein/train_data_dp_mask/"
],
"batch_size": 2,
"_comment7": "that's all"
},
"validation_data": {
"systems": [
"example/zinc_protein/val_data_dp_mask/"
"examples/zinc_protein/val_data_dp_mask/"
],
"batch_size": 2,
"_comment8": "that's all"
Expand Down