ndarray
autograd
loss
mxnet.ndarray.
ones_like
Return an array of ones with the same shape and type as the input array.
Examples:
x = [[ 0., 0., 0.], [ 0., 0., 0.]] ones_like(x) = [[ 1., 1., 1.], [ 1., 1., 1.]]
data (NDArray) – The input
out (NDArray, optional) – The output NDArray to hold the result.
out – The output of this function.
NDArray or list of NDArrays