Skip to content

Use vector constructor to initialize Array2D. #8115

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

Merged

Conversation

conqerAtapple
Copy link
Contributor

Current constructor of Array2D calls resize to initialize the inner vector of
Array2D and follows up with a Fill call. This can be replaced with a simple
call to vector constructor. Vector constructor might also be more efficient.

  Current constructor of Array2D calls resize to initialize the inner vector of
  Array2D and follows up with a Fill call. This can be replaced with a simple
  call to vector constructor. Vector constructor might also be more efficient.
@tensorflow-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@conqerAtapple
Copy link
Contributor Author

@hawkinsp please review.

@hawkinsp hawkinsp self-assigned this Mar 6, 2017
Copy link
Contributor

@hawkinsp hawkinsp left a comment

Choose a reason for hiding this comment

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

Thanks!

@conqerAtapple
Copy link
Contributor Author

@hawkinsp Thanks for the review!

@conqerAtapple
Copy link
Contributor Author

@hawkinsp will create a PR for Array3d to address the same issue.

@teamdandelion
Copy link

@tensorflow-jenkins Test this please

@teamdandelion teamdandelion merged commit 778de47 into tensorflow:master Mar 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants