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

Fix for ResetStateOnTriggerGPU #306

Closed peteschultz closed 4 years ago

peteschultz commented 4 years ago

This pull request allows for roundoff error in the ResetStateOnTriggerGPU test.

Since inputs vary in magnitude, the quantity tested is relative error, that is, (GPU - CPU)/CPU. The tolerance is set to 10^-6, to allow for single-precision floating point roundoff errors accumulated over 100 timesteps.

To prevent division-by-zero exceptions, the input layer runs from 4 to 256 instead of from 0 to 252.