public static int cudnnSetTensor(
        cudnnHandle handle, 
        cudnnTensorDescriptor yDesc, 
        Pointer y, 
        Pointer valuePtr)
    {
        return checkResult(cudnnSetTensorNative(handle, yDesc, y, valuePtr));
    }
public static int cudnnSetTensor ( cudnnHandle handle , cudnnTensorDescriptor yDesc , Pointer y , Pointer valuePtr ) { return checkResult ( cudnnSetTensorNative ( handle , yDesc , y , valuePtr ) ) ; }
Set all values of a tensor to a given value : y[i] = value[0]