Coder Social home page Coder Social logo

kaggle_latenciaga's People

Contributors

argrento avatar dendiv avatar obs01ete avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

kaggle_latenciaga's Issues

DataLoader object is not iterable

Thanks for your sharing!

But when I run the main.py with collection "layout-xla-random", it occurs the following problem "TypeError: argument of type 'method' is not iterable".

I find the problem lies in the train_Loader, it's a method rather than an iterable object, while I confirm it's a dataloader object.

The terminal information are listed as followed.

<class 'torch.utils.data.dataloader.DataLoader'> [23/57]
Traceback (most recent call last):
File "/root/kaggle/src/main.py", line 846, in
main()
File "/root/kaggle/src/main.py", line 841, in main
trainer.train()
File "/root/kaggle/src/main.py", line 364, in train
for batch in train_loader:
File "/opt/conda/envs/kaggle/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 681, in next
data = self._next_data()
File "/opt/conda/envs/kaggle/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1376, in _next_data
return self._process_data(data)
File "/opt/conda/envs/kaggle/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1402, in _process_data
data.reraise()
File "/opt/conda/envs/kaggle/lib/python3.9/site-packages/torch/_utils.py", line 461, in reraise raise exception
TypeError: Caught TypeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/opt/conda/envs/kaggle/lib/python3.9/site-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "/opt/conda/envs/kaggle/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/opt/conda/envs/kaggle/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/opt/conda/envs/kaggle/lib/python3.9/site-packages/torch_geometric/data/dataset.py", line 263, in getitem
data = self.get(self.indices()[idx])
File "/root/kaggle/src/data.py", line 331, in get
if 'node_config_feat' in single_data.keys:
TypeError: argument of type 'method' is not iterable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.