PetaVision / OpenPV

PetaVision is a C++ library for designing and deploying large-scale neurally-inspired computational models.
http://petavision.github.io
Eclipse Public License 1.0
40 stars 13 forks source link

Handling tau = 0 with viscosity momentum method #288

Closed peteschultz closed 5 years ago

peteschultz commented 5 years ago

This pull request avoids tests whether TimeConstantTau is zero before executing std::exp(-1.0f / mTimeConstantTau).

Note that it only makes this change if using TimeConstantTau; it does not change the code using the MomentumTau parameter.