forked from mindspore-Ecosystem/mindspore
enable bert st
This commit is contained in:
parent
53c96e4f3c
commit
6c488610a9
|
@ -174,7 +174,7 @@ class TimeMonitor(Callback):
|
|||
self.per_step_mseconds_list.append(epoch_mseconds / self.data_size)
|
||||
|
||||
|
||||
@pytest.mark.level2
|
||||
@pytest.mark.level0
|
||||
@pytest.mark.platform_arm_ascend_training
|
||||
@pytest.mark.platform_x86_ascend_training
|
||||
@pytest.mark.env_onecard
|
||||
|
@ -229,7 +229,7 @@ def test_bert_performance():
|
|||
|
||||
# assertion occurs while the loss value, overflow state or loss_scale value is wrong
|
||||
loss_value = np.array(callback.loss_list)
|
||||
expect_loss_value = [11.3660, 11.3265, 11.3264]
|
||||
expect_loss_value = [11.324663, 11.283459, 11.283258]
|
||||
print("loss value: {}".format(loss_value))
|
||||
assert np.allclose(loss_value, expect_loss_value, 0, 0.0005)
|
||||
|
||||
|
|
Loading…
Reference in New Issue