Skip to content

Commit bdd015c

Browse files
author
Han Wang
committed
fix issues
1 parent 21077bc commit bdd015c

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

deepmd/dpmodel/utils/type_embed.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ def change_type_map(
210210
# Create random params with same dtype and device as first_layer_matrix
211211
extend_type_params = np.random.default_rng().random(
212212
[len(type_map), first_layer_matrix.shape[-1]],
213-
dtype=PRECISION_DICT[self.precision],
214213
)
215214
extend_type_params = xp.asarray(
216215
extend_type_params,

source/tests/pt_expt/atomic_model/test_dp_atomic_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def test_exportable(self) -> None:
142142
self.assertIn("energy", ret0)
143143

144144
# Test torch.export
145+
# Use strict=False for now to handle dynamic shapes
145146
exported = torch.export.export(
146147
md0,
147148
(coord, atype, nlist),

0 commit comments

Comments
 (0)