print platform when run_check()

Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
This commit is contained in:
zhoufeng 2023-03-01 10:50:31 +08:00
parent af4a342cd4
commit 87c43cf3c1
1 changed files with 2 additions and 1 deletions

View File

@ -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():