Implement a GPU program that performs clipping on 1D input vectors.
Given an input tensor of shape [N] where N is the number of elements,
compute the output by clipping each element to a specified range [lo, hi].
The input and output tensor must be of type float32.
Clipping is defined as:
x in the input tensor, "clip" the element so that it falls within the allowed range [lo, hi].
solve function signature must remain unchangedoutput tensorInput: [1.5, -2.0, 3.0, 4.5], lo = 0.0, hi = 3.5 Output: [1.5, 0.0, 3.0, 3.5]
Input: [-1.0, 2.0, 5.0], lo = -0.5, hi = 2.5 Output: [-0.5, 2.0, 2.5]
N ≤ 100,000lo ≤ hiN = 100,000