forked from mindspore-Ecosystem/mindspore
print platform when run_check()
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
This commit is contained in:
parent
af4a342cd4
commit
87c43cf3c1
|
@ -40,7 +40,8 @@ def _check_mul():
|
|||
input_y = ms.Tensor(np.array([4.0, 5.0, 6.0]), ms.float32)
|
||||
mul = ms.ops.Mul()
|
||||
mul(input_x, input_y)
|
||||
print(f"The result of multiplication calculation is correct, MindSpore has been installed successfully!")
|
||||
print("The result of multiplication calculation is correct, MindSpore has been installed on platform "
|
||||
f"[{ms.get_context('device_target')}] successfully!")
|
||||
|
||||
|
||||
def run_check():
|
||||
|
|
Loading…
Reference in New Issue