dashboard
repositories
filestore
activity
search
login
speedprog
/
mtg/mtg_card_detector
summary
reflog
commits
tree
tickets
docs
forks
compare
blame
|
history
|
raw
I am so done with opencl, switching to cuda
Joseph Redmon
2015-01-20
4ac78c89269138b4623993f9f1d81829d8e88131
[~speedprog/mtg/mtg_card_detector.git]
/
src
/
dropout_layer.cl
1
2
3
4
5
__kernel void yoloswag420blazeit360noscope(__global float *input, __global float *rand, float prob, float scale, __global float *output)
{
int id = get_global_id(0);
output[id] = (rand[id] < prob) ? 0 : input[id]*scale;
}