forked from mindspore-Ecosystem/mindspore
!18196 Fix the ST probabilistic failure in daily version<test_transformer>
Merge pull request !18196 from casgj/master_ci
This commit is contained in:
commit
1ccb1f5946
|
@ -195,12 +195,12 @@ def test_transformer():
|
||||||
epoch_mseconds = np.array(time_monitor_callback.epoch_mseconds_list)[2]
|
epoch_mseconds = np.array(time_monitor_callback.epoch_mseconds_list)[2]
|
||||||
expect_epoch_mseconds = 2400
|
expect_epoch_mseconds = 2400
|
||||||
print("epoch mseconds: {}".format(epoch_mseconds))
|
print("epoch mseconds: {}".format(epoch_mseconds))
|
||||||
assert epoch_mseconds <= expect_epoch_mseconds + 20
|
assert epoch_mseconds <= expect_epoch_mseconds + 100
|
||||||
|
|
||||||
per_step_mseconds = np.array(time_monitor_callback.per_step_mseconds_list)[2]
|
per_step_mseconds = np.array(time_monitor_callback.per_step_mseconds_list)[2]
|
||||||
expect_per_step_mseconds = 240
|
expect_per_step_mseconds = 240
|
||||||
print("per step mseconds: {}".format(per_step_mseconds))
|
print("per step mseconds: {}".format(per_step_mseconds))
|
||||||
assert per_step_mseconds <= expect_per_step_mseconds + 2
|
assert per_step_mseconds <= expect_per_step_mseconds + 10
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.level1
|
@pytest.mark.level1
|
||||||
|
|
Loading…
Reference in New Issue