Return an array of the given shape and dtype filled with ones.
shape : tuple
Array shape.
dtype : data-type
Data type for the array.
allocator : callable
Returns an object that represents the memory allocated for the requested array.
out : pycuda.gpuarray.GPUArray
Array of ones with the given shape and dtype.