issue_comments
7 rows where issue = 482543307 and user = 19956442 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- Use pytorch as backend for xarrays · 7 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
773489462 | https://github.com/pydata/xarray/issues/3232#issuecomment-773489462 | https://api.github.com/repos/pydata/xarray/issues/3232 | MDEyOklzc3VlQ29tbWVudDc3MzQ4OTQ2Mg== | Duane321 19956442 | 2021-02-04T17:46:15Z | 2021-02-04T17:46:15Z | NONE | Thank again @keewis , that was indeed the case. It was due to my older PyTorch version (1.6.0) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Use pytorch as backend for xarrays 482543307 | |
770128996 | https://github.com/pydata/xarray/issues/3232#issuecomment-770128996 | https://api.github.com/repos/pydata/xarray/issues/3232 | MDEyOklzc3VlQ29tbWVudDc3MDEyODk5Ng== | Duane321 19956442 | 2021-01-30T01:14:03Z | 2021-01-30T01:14:03Z | NONE | Thank you very much @keewis - your code did what I was trying to do. big help! One thing I noticed with the missing features is the following : This seems like a bit of a problem. Index-based selection is a primary reason to use xarray's. If that changes |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Use pytorch as backend for xarrays 482543307 | |
768529007 | https://github.com/pydata/xarray/issues/3232#issuecomment-768529007 | https://api.github.com/repos/pydata/xarray/issues/3232 | MDEyOklzc3VlQ29tbWVudDc2ODUyOTAwNw== | Duane321 19956442 | 2021-01-27T19:39:32Z | 2021-01-29T22:37:28Z | NONE | I've made some mild progress, but it raises a few questions. I've defined this simple Tensor subclass which meets the duck array criteria: ``` class XArrayTensor(torch.Tensor): def new(cls, data=None, requires_grad=False): if data is None: data = torch.Tensor() return torch.Tensor._make_subclass(cls, data, requires_grad)
``` where I added a ``` xr_tsr = XArrayTensor(torch.rand(3, 2)) data_array = xr.DataArray( xr_tsr, coords=dict(a=["a1", "a2", "a3"], b=["b1", "b1"]), dims=["a", "b"], name="dummy", attrs={"grad": xr_tsr.grad}, ) print(type(data_array.data)) --> yields 'xarray_tensor.XArrayTensor' ``` The issue I'm running into is when I run an operation like Also, I'd like to confirm something. If the API matching were complete, would the following be possible?
I'm starting to suspect not because that would involve data_array being both |
{ "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 2, "rocket": 0, "eyes": 0 } |
Use pytorch as backend for xarrays 482543307 | |
766466486 | https://github.com/pydata/xarray/issues/3232#issuecomment-766466486 | https://api.github.com/repos/pydata/xarray/issues/3232 | MDEyOklzc3VlQ29tbWVudDc2NjQ2NjQ4Ng== | Duane321 19956442 | 2021-01-25T00:13:53Z | 2021-01-25T00:14:11Z | NONE |
Glad to hear there's progress I can lean on. I'll come back with a minimum version that does the API matching for maybe 1-2 methods, just to get feedback on theoverall structure. If it works, I can brute through a lot of the rest 🤞
Thank you, I hesitate to change xarray code but not anymore.
Does this mean I shouldn't fill out |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Use pytorch as backend for xarrays 482543307 | |
766464095 | https://github.com/pydata/xarray/issues/3232#issuecomment-766464095 | https://api.github.com/repos/pydata/xarray/issues/3232 | MDEyOklzc3VlQ29tbWVudDc2NjQ2NDA5NQ== | Duane321 19956442 | 2021-01-25T00:00:46Z | 2021-01-25T00:00:46Z | NONE |
I really hope so. I explored named_tensors at first, but the lack an index for each dimension was a non-starter. So, I'll keep an eye out. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Use pytorch as backend for xarrays 482543307 | |
765738462 | https://github.com/pydata/xarray/issues/3232#issuecomment-765738462 | https://api.github.com/repos/pydata/xarray/issues/3232 | MDEyOklzc3VlQ29tbWVudDc2NTczODQ2Mg== | Duane321 19956442 | 2021-01-22T23:16:49Z | 2021-01-22T23:16:49Z | NONE |
@rgommers Do you expect this solution to work with a PyTorch Tensor custom subclass? Or is monkey patching necessary? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Use pytorch as backend for xarrays 482543307 | |
765710268 | https://github.com/pydata/xarray/issues/3232#issuecomment-765710268 | https://api.github.com/repos/pydata/xarray/issues/3232 | MDEyOklzc3VlQ29tbWVudDc2NTcxMDI2OA== | Duane321 19956442 | 2021-01-22T22:04:20Z | 2021-01-22T22:14:50Z | NONE | I'd like to cast my vote in favor of getting this functionality in. It would be nice to autodiff through xarray operations. From reading this and related threads, I'm trying to determine a gameplan to make this happen. I'm not familiar with xarray code, so any guidance would be much appreciated. This is what I'm thinking : 1) Create a custom subclass of PyTorch's Tensors which meets the duck array required methods and attributes. Since this isn't officially supported, looks like I could run into issues getting this subclass to persist through tensor operations.
2) Implement the __array_function__ protocol for PyTorch similar to how is demo-ed here.
3) Pass this custom class into data array constructors and hope the My first attempts at this haven't been successful. Whatever custom class I make and past to the Any suggestions would be appreciated. I'm hoping to figure out the shortest path to a working prototype. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Use pytorch as backend for xarrays 482543307 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 1