function ones_like(tensor) {
    return ones(tensor.dims);
}
Returns a tensor filled with the scalar value 1, with the same size as input.
@param {Tensor} tensor The size of input will determine size of the output tensor.
@returns {Tensor} The ones tensor.