We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 850f63d commit 6846001Copy full SHA for 6846001
1 file changed
source/tests/tf/test_lr.py
@@ -13,7 +13,6 @@
13
LearningRateExp,
14
)
15
from deepmd.tf.env import (
16
- GLOBAL_TF_FLOAT_PRECISION,
17
tf,
18
19
from deepmd.tf.utils.learning_rate import (
@@ -49,7 +48,7 @@ def test_build_returns_tensor(self) -> None:
49
48
lr_tensor = lr_schedule.build(global_step, num_steps=10000)
50
51
self.assertIsInstance(lr_tensor, tf.Tensor)
52
- self.assertEqual(lr_tensor.dtype, GLOBAL_TF_FLOAT_PRECISION)
+ self.assertEqual(lr_tensor.dtype, tf.float32)
53
54
def test_default_type_exp(self) -> None:
55
"""Test that default type is 'exp' when not specified."""
0 commit comments