benedekrozemberczki / pytorch_geometric_temporal

PyTorch Geometric Temporal: Spatiotemporal Signal Processing with Neural Machine Learning Models (CIKM 2021)
MIT License
2.61k stars 367 forks source link

Attribute issue in DynamicTemporalSignal: torch.dtype.kind #223

Closed NadineAngermeier closed 1 year ago

NadineAngermeier commented 1 year ago

Hello,

I have created a DynamicTemporalSignal dataset which takes torch tensors e.g. for the target.

Within the DynamicTemporalSignal implementation, I run into the error 'torch.dtype' object has no attribute 'kind', which is triggered in the get_target funciton, in the code fragment 'self.targets[time_index].dtype.kind == "f"'. In the example data, they have the same datatype, but not multiple targets.

Could you please help me on how I could resolve the issue? Thank you very much!

My code can be found here: https://github.com/NadineAngermeier/OPF-PyGTemp

cl19951225 commented 1 year ago

Hi Nadine,

I've encountered the same issue as you have. Could you please let me know how you fix it? Many thanks!