html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/3232#issuecomment-1190382681,https://api.github.com/repos/pydata/xarray/issues/3232,1190382681,IC_kwDOAMm_X85G88xZ,4441865,2022-07-20T14:48:15Z,2022-07-20T14:48:15Z,CONTRIBUTOR,"Makes sense, then I'll wait for https://github.com/pytorch/pytorch/issues/58743 to try it.","{""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,482543307 https://github.com/pydata/xarray/issues/3232#issuecomment-1190162973,https://api.github.com/repos/pydata/xarray/issues/3232,1190162973,IC_kwDOAMm_X85G8HId,85085,2022-07-20T11:35:03Z,2022-07-20T11:35:03Z,CONTRIBUTOR,"> I think it can't be tested with pytorch until they compete [pytorch/pytorch#58743](https://github.com/pytorch/pytorch/issues/58743), right? It needs `__array_namespace__` to be defined to activate the new code path.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,482543307 https://github.com/pydata/xarray/issues/3232#issuecomment-1190068100,https://api.github.com/repos/pydata/xarray/issues/3232,1190068100,IC_kwDOAMm_X85G7v-E,4441865,2022-07-20T09:50:59Z,2022-07-20T09:50:59Z,CONTRIBUTOR,"Nice that it's so simple. I think it can't be tested with pytorch until they compete https://github.com/pytorch/pytorch/issues/58743, right? Or we should just try passing `torch.tensor` into xarray directly?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,482543307 https://github.com/pydata/xarray/issues/3232#issuecomment-1189941650,https://api.github.com/repos/pydata/xarray/issues/3232,1189941650,IC_kwDOAMm_X85G7RGS,85085,2022-07-20T07:45:39Z,2022-07-20T07:45:39Z,CONTRIBUTOR,"Hi @hsharrison - thanks for offering to do some testing. Here's a little demo script that you could try, by switching `numpy.array_api` to pytorch: https://github.com/tomwhite/xarray/commit/929812a12818ffaa1187eb860c9b61e3fc03973c","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,482543307 https://github.com/pydata/xarray/issues/3232#issuecomment-1189938517,https://api.github.com/repos/pydata/xarray/issues/3232,1189938517,IC_kwDOAMm_X85G7QVV,4441865,2022-07-20T07:42:05Z,2022-07-20T07:42:05Z,CONTRIBUTOR,"Glad to see progress on this!! 👏 Just curious though, seeing this comment in the PR: > Note: I haven't actually tested this with pytorch (which is the motivating example for https://github.com/pydata/xarray/issues/3232). Are we sure this closes the issue? And, how can we try it out? Even lacking docs, a comment explaining how to set it up would be great, and I can do some testing on my end. I understand that it's an experimental feature.","{""total_count"": 1, ""+1"": 0, ""-1"": 0, ""laugh"": 1, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,482543307 https://github.com/pydata/xarray/issues/3232#issuecomment-1187007032,https://api.github.com/repos/pydata/xarray/issues/3232,1187007032,IC_kwDOAMm_X85GwEo4,85085,2022-07-18T10:04:29Z,2022-07-18T10:04:29Z,CONTRIBUTOR,Opened #6804,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,482543307 https://github.com/pydata/xarray/issues/3232#issuecomment-1182978725,https://api.github.com/repos/pydata/xarray/issues/3232,1182978725,IC_kwDOAMm_X85GgtKl,85085,2022-07-13T09:18:51Z,2022-07-13T09:18:51Z,CONTRIBUTOR,"I started having a look at making xarray work with the array API here: https://github.com/tomwhite/xarray/commit/c72a1c4a4c52152bdab83f60f35615de28e8be7f. Some basic operations work (preserving the underlying array): https://github.com/tomwhite/xarray/commit/929812a12818ffaa1187eb860c9b61e3fc03973c. If there's interest, I'd be happy to turn this into a PR with some tests.","{""total_count"": 4, ""+1"": 4, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,482543307 https://github.com/pydata/xarray/issues/3232#issuecomment-656627686,https://api.github.com/repos/pydata/xarray/issues/3232,656627686,MDEyOklzc3VlQ29tbWVudDY1NjYyNzY4Ng==,1610850,2020-07-10T11:30:36Z,2020-07-10T11:30:36Z,CONTRIBUTOR,"@fjanoos I'm afraid I don't. In [RAPIDS](https://rapids.ai/) we support cupy as our GPU array implementation. So this request has come from the desire to make xarray compatible with the RAPIDS suite of tools. We commonly see folks using cupy to switch straight over to a tool like pytorch using DLPack. https://docs-cupy.chainer.org/en/stable/reference/interoperability.html#dlpack But I don't really see #4212 as an effort to make cupy the GPU backend for xarray. I see it as adding support for another backend to xarray. The more the merrier!","{""total_count"": 3, ""+1"": 3, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,482543307 https://github.com/pydata/xarray/issues/3232#issuecomment-656178897,https://api.github.com/repos/pydata/xarray/issues/3232,656178897,MDEyOklzc3VlQ29tbWVudDY1NjE3ODg5Nw==,1610850,2020-07-09T14:58:40Z,2020-07-09T14:58:40Z,CONTRIBUTOR,"@andersy005 I'm about to start working actively on `cupy` support in xarray. Would be great to get some of your input. Cupy requests that instead of calling `__array__` you instead call their `.get` method for explicit conversion to numpy. So we need to add a little compatibility code for this.","{""total_count"": 4, ""+1"": 4, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,482543307