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

index errors #26

Open
jiangenhe opened this issue Jul 8, 2019 · 2 comments
Open

index errors #26

jiangenhe opened this issue Jul 8, 2019 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@jiangenhe
Copy link

jiangenhe commented Jul 8, 2019

I came across index errors for some files. I examined these files and no common feature has been identified. The error is as below. Did anyone saw the same error?

IndexError: index 1279213 is out of bounds for size 1278786
Apply node that caused the error: AdvancedSubtensor1(word_layer__embeddings, word_ids)
Toposort index: 16
Inputs types: [TensorType(float64, matrix), TensorType(int32, vector)]
Inputs shapes: [(1278786, 500), (537,)]
Inputs strides: [(4000, 8), (4,)]
Inputs values: ['not shown', 'not shown']
Outputs clients: [[Join(TensorConstant{1}, AdvancedSubtensor1.0, AdvancedSubtensor.0, AdvancedSubtensor.0, AdvancedSubtensor1.0)]]

Backtrace when the node is created(use Theano flag traceback.limit=N to make it longer):
File "parscit/run.py", line 42, in
f = model.build(training=False, **model.parameters)
File "parscit/model.py", line 223, in build
word_input = word_layer.link(word_ids)
File "parscit/nn.py", line 101, in link
self.output = self.embeddings[self.input]

@kylase
Copy link

kylase commented Jul 10, 2019

This is related to #16.

@jiangenhe I presume this happens after the training is done?

@kylase kylase added bug Something isn't working duplicate This issue or pull request already exists labels Jul 10, 2019
@bytetopia
Copy link

I have the same error message. Is there a solution to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants