Searched refs:getBernoulli (Results 1 – 5 of 5) sorted by relevance
29 if (getBernoulli(0.9f)) { in broadcastOpConstructor()34 if (getBernoulli(0.9f)) { in broadcastOpConstructor()
286 beginMask[i] = (begin[i] == 0 && getBernoulli(0.2f)); in stridedSliceFinalizer()287 endMask[i] = (end[i] == 0 && getBernoulli(0.2f)); in stridedSliceFinalizer()301 if (getBernoulli(0.2f)) { in stridedSliceFinalizer()
104 for (uint32_t i = 0; i < len; i++) data[i] = getBernoulli(0.5f);
129 if (getBernoulli(prob)) { in generateGraph()148 if (getBernoulli(prob)) return true; in asConstant()
411 inline bool getBernoulli(double p) { in getBernoulli() function