Skip to content

Commit cb15335

Browse files
committed
set is_pt
1 parent 39d6d17 commit cb15335

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

deepmd/pt/utils/tabulate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ def __init__(
5959
neuron,
6060
type_one_side,
6161
exclude_types,
62+
True,
6263
)
6364
self.descrpt_type = self._get_descrpt_type()
64-
self.is_pt = True
6565

6666
supported_descrpt_type = (
6767
"Atten",

deepmd/tf/utils/tabulate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ def __init__(
7878
neuron,
7979
type_one_side,
8080
exclude_types,
81+
False,
8182
)
8283

8384
self.descrpt_type = self._get_descrpt_type()
84-
self.is_pt = False
8585
"""Constructor."""
8686
self.graph = graph
8787
self.graph_def = graph_def

deepmd/utils/tabulate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def __init__(
2525
neuron,
2626
type_one_side,
2727
exclude_types,
28+
is_pt,
2829
) -> None:
2930
"""Constructor."""
3031
super().__init__()
@@ -34,10 +35,10 @@ def __init__(
3435
self.neuron = neuron
3536
self.type_one_side = type_one_side
3637
self.exclude_types = exclude_types
38+
self.is_pt = is_pt
3739

3840
"""Need to be initialized in the subclass."""
3941
self.descrpt_type = "Base"
40-
self.is_pt = True
4142

4243
self.sel_a = []
4344
self.rcut = 0.0

0 commit comments

Comments
 (0)