Skip to content

Commit

Permalink
set is_pt
Browse files Browse the repository at this point in the history
  • Loading branch information
cherryWangY committed Oct 31, 2024
1 parent 39d6d17 commit cb15335
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deepmd/pt/utils/tabulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def __init__(
neuron,
type_one_side,
exclude_types,
True,
)
self.descrpt_type = self._get_descrpt_type()
self.is_pt = True

supported_descrpt_type = (
"Atten",
Expand Down
2 changes: 1 addition & 1 deletion deepmd/tf/utils/tabulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ def __init__(
neuron,
type_one_side,
exclude_types,
False,
)

self.descrpt_type = self._get_descrpt_type()
self.is_pt = False
"""Constructor."""
self.graph = graph
self.graph_def = graph_def
Expand Down
3 changes: 2 additions & 1 deletion deepmd/utils/tabulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def __init__(
neuron,
type_one_side,
exclude_types,
is_pt,
) -> None:
"""Constructor."""
super().__init__()
Expand All @@ -34,10 +35,10 @@ def __init__(
self.neuron = neuron
self.type_one_side = type_one_side
self.exclude_types = exclude_types
self.is_pt = is_pt

"""Need to be initialized in the subclass."""
self.descrpt_type = "Base"
self.is_pt = True

self.sel_a = []
self.rcut = 0.0
Expand Down

0 comments on commit cb15335

Please sign in to comment.