def forward_gpu(self, x): y = cuda.elementwise( 'T x', 'T y', 'y = x >= 0 ? 1 : -1', 'bst_fwd')( x[0]) return y,