This repository has been archived by the owner. It is now read-only.
Switch branches/tags
Find file History
treo and raver119 Return *mutable* lists from doDiff (#2702)
* Return *mutable* lists from doDiff

Collections.singletonList returns an immutable list, yet DifferentialFunction.diff expects that the list is mutable.

doDiff returns mutable lists in other contexts as well, so this shouldn't violate any implicit assumptions.

* Apply mutability change to remaining ops

* Throw a more informative message if someone uses an immutable list when returning gradients
Latest commit e6c51e9 Mar 8, 2018