!14794 fix test case bug

From: @woshixiaoli
Reviewed-by: @zichun_ye,@sunnybeike
Signed-off-by: @zichun_ye
This commit is contained in:
mindspore-ci-bot 2021-04-09 14:24:56 +08:00 committed by Gitee
commit 018617a091
3 changed files with 3 additions and 3 deletions

View File

@ -14,13 +14,13 @@
# ============================================================================
"""test cases for categorical distribution"""
import pytest
import numpy as np
import mindspore.context as context
import mindspore.nn as nn
import mindspore.nn.probability.distribution as msd
from mindspore import Tensor
from mindspore import dtype as ms
import pytest
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")

View File

@ -14,13 +14,13 @@
# ============================================================================
"""test cases for cauchy distribution"""
import pytest
import numpy as np
import mindspore.context as context
import mindspore.nn as nn
import mindspore.nn.probability.distribution as msd
from mindspore import Tensor
from mindspore import dtype as ms
import pytest
context.set_context(mode=context.PYNATIVE_MODE, device_target="Ascend")

View File

@ -14,12 +14,12 @@
# ============================================================================
"""test cases for gamma distribution"""
import pytest
import numpy as np
import mindspore.context as context
import mindspore.nn as nn
import mindspore.nn.probability.distribution as msd
from mindspore import dtype as ms
import pytest
context.set_context(mode=context.PYNATIVE_MODE, device_target="Ascend")