Skip to content

Commit

Permalink
update lem (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
floatingCatty authored Jun 7, 2024
1 parent 476c215 commit 49ec04c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dptb/nn/embedding/lem.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ def __init__(
self.sh = SphericalHarmonics(
irreps_sh, sh_normalized, sh_normalization
)
self.onehot = OneHotAtomEncoding(num_types=n_atom, set_features=False)
self.onehot = OneHotAtomEncoding(num_types=self.n_atom, set_features=False)

self.init_layer = InitLayer(
idp=self.idp,
num_types=n_atom,
num_types=self.n_atom,
n_radial_basis=n_radial_basis,
r_max=r_max,
irreps_sh=irreps_sh,
Expand Down Expand Up @@ -146,7 +146,7 @@ def __init__(
irreps_out = irreps_hidden

self.layers.append(Layer(
num_types=n_atom,
num_types=self.n_atom,
# required params
avg_num_neighbors=avg_num_neighbors,
irreps_in=irreps_in,
Expand Down

0 comments on commit 49ec04c

Please sign in to comment.