Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about the batch-size #76

Open
zhanking321 opened this issue Feb 21, 2021 · 0 comments
Open

Question about the batch-size #76

zhanking321 opened this issue Feb 21, 2021 · 0 comments

Comments

@zhanking321
Copy link

Hello, I want to ask about the batch-size. When I change the batch-size to 512, it has some problems:
Traceback (most recent call last):
File "/root/anaconda3/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/home/disk_sdb/app/ConvE-master/src/spodernet/spodernet/preprocessing/batching.py", line 175, in run
shard_idx = self.rdm.choice(len(list(self.shard2batchidx.keys())), 1, p=self.shard_fractions)[0]
File "mtrand.pyx", line 917, in numpy.random.mtrand.RandomState.choice
ValueError: 'a' and 'p' must have same size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant