Skip to content

Use vector constructor to initialize Array3D. #8144

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
merged 2 commits into from
Mar 8, 2017

Conversation

conqerAtapple
Copy link
Contributor

Current constructor of Array3D calls resize to initialize the inner vector of
Array3D 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 Array3D calls resize to initialize the inner vector of
Array3D 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. Array2D has been covered in #8115.

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.

This change is fine, but perhaps you should change Array4D as well at the same time? Thanks!

@conqerAtapple
Copy link
Contributor Author

@hawkinsp Added Array4D changes.

@teamdandelion
Copy link

@tensorflow-jenkins Test this please

@teamdandelion
Copy link

The XLA test looks like a flake - retriggering.
@tensorflow-jenkins Test this please

@caisq caisq merged commit e05e5ed into tensorflow:master Mar 8, 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.

6 participants