fix relu cudnn test bug

(Quick fix, will merge when travis passes. This addresses #1294.)