dashboard
repositories
filestore
activity
search
login
speedprog
/
mtg/mtg_card_detector
summary
reflog
commits
tree
tickets
docs
forks
compare
blame
|
history
|
raw
stable, dropout on gpu
Joseph Redmon
2014-11-19
7c120aef23fde5b215b0fb6eef3074a15f16ff69
[~speedprog/mtg/mtg_card_detector.git]
/
src
/
dropout_layer.cl
1
2
3
4
5
__kernel void forward(__global float *input, __global float *rand, float prob)
{
int id = get_global_id(0);
input[id] = (rand[id] < prob) ? 0 : input[id]/(1.-prob);
}