Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz authored Feb 26, 2024
1 parent 4a17c1f commit 9681276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepmd/pt/model/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# the abstract method will override the method from the atomic model
# as Python resolves method lookups using the C3 linearisation.
# See https://stackoverflow.com/a/47117600/9567349
# Take an example, this is sitatuion for only inherbiting BaseBaseModel:
# Take an example, this is the situation for only inheriting BaseBaseModel:
# torch.nn.Module BaseAtomicModel BaseBaseModel
# | | |
# ------------------------- |
Expand All @@ -40,7 +40,7 @@
# DPModel
#
# The order is: DPModel -> make_model(DPAtomicModel) -> DPAtomicModel ->
# torch.nn.Module -> BaseAtomicModel -> BaseBaseModel
# torch.nn.Module -> BaseAtomicModel -> BaseModel -> BaseBaseModel
#
# However, if BaseModel also inherbits from torch.nn.Module:
# torch.nn.Module BaseBaseModel
Expand Down

0 comments on commit 9681276

Please sign in to comment.