keras/tests
berleon dd766c68d9 Fix LeakyReLU return dtype (#2214)
LeakyReLU returns a tensor with float64 dtype.
It is stupid, but this line actually produces a float64 array:

```
    0.5*np.array(0.2, dtype=np.float32)
```

The theano nnet.relu function does something similar like this with the
LeakyReLU alpha parameter, which lead to a float64 tensor.
The solution is to not cast the alpha to float32.

Furthermore I tighten the `test_utils.layer_test`. It is now
required that the layer's output dtype is equal to the input dtype.
2016-04-07 17:02:03 -07:00
..
integration_tests Keras 1.0 preview. 2016-03-31 11:35:27 -07:00
keras Fix LeakyReLU return dtype (#2214) 2016-04-07 17:02:03 -07:00
test_loss_masking.py Fix some more tests 2016-04-01 16:45:05 -07:00
test_loss_weighting.py Test cleanup 2016-01-28 19:21:45 -08:00