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

implementing stack for tensors #42

Merged
merged 3 commits into from
Oct 17, 2015
Merged

Conversation

robertnishihara
Copy link
Contributor

Allows stack to take tensors and not just scalars. Addresses #4.

joschu added a commit that referenced this pull request Oct 17, 2015
implementing stack for tensors
@joschu joschu merged commit a779ab3 into joschu:master Oct 17, 2015

If a, b, c have shape (2, 2, 2) then stack([a,b,c], axis=0) builds
a tensor with shape (3, 2, 2, 2) and stack([a,b,c], axis=0) builds
a tensor with shape (2, 3, 2, 2)
Copy link

Choose a reason for hiding this comment

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

Doesn't make sense, I guess you mean axis=1 the second time?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. Fixed in #47.

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.

3 participants