Skip to content

Commit

Permalink
fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengqian-Zhang committed Mar 18, 2024
1 parent 0dc11d6 commit cea7476
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deepmd/pt/model/task/denoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def serialize(self) -> dict:
}

@classmethod
def deserialize(cls, data: dict) -> "DenoiseFitting":
def deserialize(cls, data: dict) -> "DenoiseFittingNet":
data = copy.deepcopy(data)
variables = data.pop("@variables")
nets = data.pop("nets")
Expand Down Expand Up @@ -494,6 +494,7 @@ def forward(
outs_logits + atom_logits
)
# TODO:
'''
else:
for type_i, ll in enumerate(self.filter_layers_coord.networks):
mask = (atype == type_i).unsqueeze(-1)
Expand All @@ -512,6 +513,7 @@ def forward(
outs = (
outs + atom_property
) # Shape is [nframes, natoms[0], net_dim_out]
'''
# nf x nloc
mask = self.emask(atype)
# nf x nloc x nod
Expand Down

0 comments on commit cea7476

Please sign in to comment.