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