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

[CRASH] Subtensor list #2992

Merged
merged 6 commits into from Jun 4, 2015
Merged

[CRASH] Subtensor list #2992

merged 6 commits into from Jun 4, 2015

Conversation

nouiz
Copy link
Member

@nouiz nouiz commented Jun 2, 2015

Fix crash reported in "[theano-users] Slice indexing: tuple vs. list" and clean up

@@ -355,7 +355,7 @@ def astype(self, dtype):

# SLICING/INDEXING
def __getitem__(self, args):
if not isinstance(args, tuple):
if not isinstance(args, (list, tuple)):
args = args,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is correct, lots of tests are failing now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, I think the only case where we should treat a list like a tuple is if the list has slices in it.

@nouiz
Copy link
Member Author

nouiz commented Jun 3, 2015

I amended the first commit with the good fix and added a last commit.

lamblin added a commit that referenced this pull request Jun 4, 2015
@lamblin lamblin merged commit 944e36d into Theano:master Jun 4, 2015
@nouiz nouiz deleted the subtensor_list branch April 1, 2016 00:46
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

Successfully merging this pull request may close these issues.

None yet

2 participants