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

Cleanup &vec![..] #86

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alexandermorozov
Copy link
Contributor

This PR depends on #85 and autumnai/collenchyma#57.

It replaces &vec![...] with &[...] where appropriate. I think it's a good change since it removes unneeded allocations and makes lines a bit shorter )

The patch also removes one redundant .clone() call.

If you think that PR to collenchyma isn't worth it, I can change this PR to use tuples instead of arrays.

Edit: travis'll fail this commit until collenchyma's PR is merged and crate published.

Looks like benchmarks are superseded by examples/benchmarks.rs and should
be removed altogether, but while they are here they should at least compile
cleanly. Well, now benches compile but panic on tensor dimension mismatch.
@GitCop
Copy link

GitCop commented Mar 20, 2016

There were the following issues with your Pull Request

  • Commit: c57172b
    • Your subject line is longer than 100 characters

Guidelines are available at https://github.com/autumnai/leaf/blob/develop/CONTRIBUTING.md#git-commit-guidelines


This message was auto-generated by https://gitcop.com

@homu
Copy link
Collaborator

homu commented Mar 30, 2016

☔ The latest upstream changes (presumably #85) made this pull request unmergeable. Please resolve the merge conflicts.

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

Successfully merging this pull request may close these issues.

None yet

4 participants