Skip to content

Conversation

@jekbradbury
Copy link

Currently global reductions like sum try to access the rank property, which is dynamically unavailable on abstractified tensors. Switch to a reshape then single-axis reduction.

Currently global reductions like `sum` try to access the `rank` property, which is dynamically unavailable on abstractified tensors. Switch to a `reshape` then single-axis reduction.
@jekbradbury jekbradbury requested a review from dan-zheng April 13, 2019 04:37
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Apr 13, 2019
@dan-zheng
Copy link
Contributor

@swift-ci Please test tensorflow

@jekbradbury
Copy link
Author

Looks like CI is down, but I'm merging because I'd like to have this in the build tomorrow.

@jekbradbury jekbradbury merged commit 71cd119 into tensorflow Apr 15, 2019
@jekbradbury jekbradbury deleted the jekbradbury-trace-sum branch April 15, 2019 07:21
rxwei added a commit that referenced this pull request Apr 15, 2019
rxwei added a commit that referenced this pull request Apr 15, 2019
rxwei pushed a commit to rxwei/swift that referenced this pull request May 11, 2019
rxwei added a commit to rxwei/swift that referenced this pull request May 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tensorflow This is for "tensorflow" branch PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants