Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Add vjps that don't use slicing or gather on shapes. #556

Merged
merged 1 commit into from
Nov 15, 2019

Conversation

pschuh
Copy link
Contributor

@pschuh pschuh commented Nov 15, 2019

For _vjpMean(alongAxes axes: [Int]),
We can do:
let count = axes.map { myShape[$0] }.reduce(1, *)
instead of dispatching an op to do the shape computations.

@pschuh pschuh requested a review from asuhan November 15, 2019 20:02
@pschuh pschuh merged commit 2b36637 into tensorflow:master Nov 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants