List of questions
Related questions
Question 7 - H13-311_V3.5 discussion
When you use MindSpore to execute the following code, which of the following is the output?
from mindspore import ops
import mindspore
shape = (2, 2)
ones = ops.Ones()
output = ones(shape, dtype=mindspore.float32)
print(output)
A.
[[1 1] [1 1]]
B.
[[1. 1.] [1. 1.]]
C.
1
D.
[[1. 1. 1. 1.]]
Your answer:
0 comments
Sorted by
Leave a comment first