Skip to content

Commit 6846001

Browse files
committed
fix test
1 parent 850f63d commit 6846001

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

source/tests/tf/test_lr.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
LearningRateExp,
1414
)
1515
from deepmd.tf.env import (
16-
GLOBAL_TF_FLOAT_PRECISION,
1716
tf,
1817
)
1918
from deepmd.tf.utils.learning_rate import (
@@ -49,7 +48,7 @@ def test_build_returns_tensor(self) -> None:
4948
lr_tensor = lr_schedule.build(global_step, num_steps=10000)
5049

5150
self.assertIsInstance(lr_tensor, tf.Tensor)
52-
self.assertEqual(lr_tensor.dtype, GLOBAL_TF_FLOAT_PRECISION)
51+
self.assertEqual(lr_tensor.dtype, tf.float32)
5352

5453
def test_default_type_exp(self) -> None:
5554
"""Test that default type is 'exp' when not specified."""

0 commit comments

Comments
 (0)