This commit is contained in:
woshixiaoli 2021-04-08 17:47:03 +08:00
parent ac2fd8d214
commit eaac277515
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")