static inline nd::array To(const nd::array &a) {
#ifdef DYND_CUDA
    return a.to_host();
#else
    return a;
#endif // DYND_CUDA
  }