/external/tensorflow/tensorflow/python/kernel_tests/ |
D | parameterized_truncated_normal_op_test.py | 51 minval = None variable in TruncatedNormalMoments 54 def __init__(self, mean, stddev, minval, maxval): argument 59 self.minval = np.double(max(-10, minval)) 83 np.power(self.minval, k - 1) * dist.pdf(self.minval)) 84 denominator = dist.cdf(self.maxval) - dist.cdf(self.minval) 121 def validateMoments(self, shape, mean, stddev, minval, maxval, seed=1618): argument 129 minval, 133 expected_moments = TruncatedNormalMoments(mean, stddev, minval, maxval) 145 minval, argument 153 minval, [all …]
|
D | ctc_loss_op_test.py | 318 [batch_size, max_label_length], minval=1, maxval=num_labels, 323 [batch_size], minval=2, maxval=max_label_length, dtype=dtypes.int64) 364 [batch_size, label_length], minval=1, maxval=num_labels, 368 [batch_size], minval=2, maxval=label_length, dtype=dtypes.int64) 417 [batch_size, label_length], minval=1, maxval=num_labels, 421 [batch_size], minval=2, maxval=label_length, dtype=dtypes.int64) 471 [batch_size, label_length], minval=0, maxval=num_labels-1, 475 [batch_size], minval=2, maxval=label_length, dtype=dtypes.int64) 529 [batch_size, label_length], minval=0, maxval=num_labels-1, 533 [batch_size], minval=2, maxval=label_length, dtype=dtypes.int64)
|
/external/tensorflow/tensorflow/python/ops/ |
D | stateless_random_ops.py | 40 minval=0, argument 91 [shape, seed, minval, maxval]) as name: 93 minval = ops.convert_to_tensor(minval, dtype=dtype, name="min") 97 shape, seed=seed, minval=minval, maxval=maxval, name=name) 101 return math_ops.add(rnd * (maxval - minval), minval, name=name)
|
D | stateful_random_ops.py | 224 def uniform(self, shape, minval=0, maxval=None, argument 232 [shape, minval, maxval]) as name: 234 minval = ops.convert_to_tensor(minval, dtype=dtype, name="min") 239 minval=minval, maxval=maxval, name=name)
|
D | random_ops.py | 191 minval=0, argument 238 with ops.name_scope(name, "random_uniform", [shape, minval, maxval]) as name: 240 minval = ops.convert_to_tensor(minval, dtype=dtype, name="min") 245 shape, minval, maxval, seed=seed1, seed2=seed2, name=name) 248 return math_ops.add(rnd * (maxval - minval), minval, name=name)
|
D | init_ops_v2.py | 232 def __init__(self, minval=-0.05, maxval=0.05, seed=None): argument 233 self.minval = minval 252 return self._random_generator.random_uniform(shape, self.minval, 257 "minval": self.minval, 790 def random_uniform(self, shape, minval, maxval, dtype): argument 797 shape=shape, minval=minval, maxval=maxval, dtype=dtype, seed=self.seed)
|
/external/mesa3d/src/util/ |
D | format_srgb.h | 84 } almostone, minval, f; in util_format_linear_float_to_srgb_8unorm() local 88 minval.ui = (127-13) << 23; in util_format_linear_float_to_srgb_8unorm() 95 if (!(x > minval.f)) in util_format_linear_float_to_srgb_8unorm() 96 x = minval.f; in util_format_linear_float_to_srgb_8unorm() 102 tab = util_format_linear_to_srgb_helper_table[(f.ui - minval.ui) >> 20]; in util_format_linear_float_to_srgb_8unorm()
|
/external/tensorflow/tensorflow/compiler/xla/client/lib/ |
D | prng.cc | 154 XlaOp StatelessRngUniformF32(XlaOp bits, XlaOp minval, XlaOp maxval) { in StatelessRngUniformF32() argument 170 return floats * (maxval - minval) + minval; in StatelessRngUniformF32() 173 XlaOp StatelessRngUniformInt(XlaOp bits, XlaOp minval, XlaOp maxval, in StatelessRngUniformInt() argument 177 BitcastConvertType(minval, unsigned_type); in StatelessRngUniformInt() 182 return minval + BitcastConvertType(dist_div_2, type) + in StatelessRngUniformInt() 187 XlaOp minval, XlaOp maxval) { in StatelessRngUniform() argument 193 return StatelessRngUniformF32(bits, minval, maxval); in StatelessRngUniform() 197 return StatelessRngUniformInt(bits, minval, maxval, type, U32); in StatelessRngUniform() 201 return StatelessRngUniformInt(bits, minval, maxval, type, U64); in StatelessRngUniform()
|
D | prng.h | 36 XlaOp minval, XlaOp maxval); 40 XlaOp StatelessRngUniformF32(XlaOp bits, XlaOp minval, XlaOp maxval); 49 XlaOp StatelessRngUniformInt(XlaOp bits, XlaOp minval, XlaOp maxval,
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_StatefulUniformInt.pbtxt | 23 name: "minval" 48 The generated values are uniform integers in the range `[minval, maxval)`. 49 The lower bound `minval` is included in the range, while the upper bound 52 The random integers are slightly biased unless `maxval - minval` is an exact 53 power of two. The bias is small for values of `maxval - minval` significantly
|
D | api_def_RandomUniformInt.pbtxt | 10 name: "minval" 43 The generated values are uniform integers in the range `[minval, maxval)`. 44 The lower bound `minval` is included in the range, while the upper bound 47 The random integers are slightly biased unless `maxval - minval` is an exact 48 power of two. The bias is small for values of `maxval - minval` significantly
|
D | api_def_StatelessRandomUniformInt.pbtxt | 17 name: "minval" 42 The generated values follow a uniform distribution in the range `[minval, maxval)`. 44 The outputs are a deterministic function of `shape`, `seed`, `minval`, and `maxval`.
|
/external/libopus/celt/ |
D | mathops.h | 84 opus_val16 minval = 0; in celt_maxabs16() local 88 minval = MIN16(minval, x[i]); in celt_maxabs16() 90 return MAX32(EXTEND32(maxval),-EXTEND32(minval)); in celt_maxabs16() 100 opus_val32 minval = 0; in celt_maxabs32() local 104 minval = MIN32(minval, x[i]); in celt_maxabs32() 106 return MAX32(maxval, -minval); in celt_maxabs32()
|
/external/openssh/openbsd-compat/ |
D | strtonum.c | 34 strtonum(const char *numstr, long long minval, long long maxval, in strtonum() argument 52 if (minval > maxval) in strtonum() 58 else if ((ll == LLONG_MIN && errno == ERANGE) || ll < minval) in strtonum()
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
D | stability_test.py | 68 minval = -0.3333 73 x = random_ops.random_uniform([10, 10], minval=minval, maxval=maxval) 78 x = random_ops.random_uniform([10, 10], minval=minval, maxval=maxval)
|
/external/python/cpython2/Modules/ |
D | audioop.c | 33 fbound(double val, double minval, double maxval) in fbound() argument 38 else if (val < minval + 1.0) { in fbound() 39 val = minval; in fbound() 784 double factor, fval, maxval, minval; in audioop_mul() local 794 minval = (double) minvals[size]; in audioop_mul() 807 val = fbound(fval, minval, maxval); in audioop_mul() 820 double fac1, fac2, fval, maxval, minval; in audioop_tomono() local 835 minval = (double) minvals[size]; in audioop_tomono() 851 val1 = fbound(fval, minval, maxval); in audioop_tomono() 864 double fac1, fac2, fval, maxval, minval; in audioop_tostereo() local [all …]
|
/external/python/cpython3/Modules/ |
D | audioop.c | 21 fbound(double val, double minval, double maxval) in fbound() argument 26 else if (val < minval + 1.0) { in fbound() 27 val = minval; in fbound() 918 double maxval, minval; in audioop_mul_impl() local 925 minval = (double) minvals[width]; in audioop_mul_impl() 934 int ival = fbound(val * factor, minval, maxval); in audioop_mul_impl() 959 double maxval, minval; in audioop_tomono_impl() local 972 minval = (double) minvals[width]; in audioop_tomono_impl() 983 int ival = fbound(val, minval, maxval); in audioop_tomono_impl() 1008 double maxval, minval; in audioop_tostereo_impl() local [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | parameterized_truncated_normal_op_gpu.cu.cc | 95 T minval = minvals[single_minval ? 0 : batch_id]; in TruncatedNormalKernel() local 100 if (Eigen::numext::isinf(minval) || maxval < mean) { in TruncatedNormalKernel() 103 T temp = minval; in TruncatedNormalKernel() 104 minval = maxval; in TruncatedNormalKernel() 112 const T normMin = (minval - mean) / stddev; in TruncatedNormalKernel()
|
D | parameterized_truncated_normal_op.cc | 99 T minval = minvals((minvals.dimension(0) == 1) ? 0 : b); in operator ()() local 110 stddev > T(0) && minval < maxval && in operator ()() 111 (Eigen::numext::isfinite(minval) || in operator ()() 120 if ((Eigen::numext::isinf(minval) && minval < T(0)) || maxval < mean) { in operator ()() 122 std::swap(minval, maxval); in operator ()() 127 const T normMin = (minval - mean) / stddev; in operator ()()
|
D | stateless_random_ops.cc | 123 const Tensor& minval = context->input(2); in Fill() local 125 OP_REQUIRES(context, TensorShapeUtils::IsScalar(minval.shape()), in Fill() 127 minval.shape().DebugString())); in Fill() 134 const auto lo = minval.scalar<IntType>()(); in Fill()
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | stateful_random_ops.cc | 84 xla::XlaOp minval, in StatefulRngUniform() argument 93 return std::make_pair(xla::StatelessRngUniformF32(bits, minval, maxval), in StatefulRngUniform() 102 xla::StatelessRngUniformInt(bits, minval, maxval, type, xla::U32), in StatefulRngUniform() 111 xla::StatelessRngUniformInt(bits, minval, maxval, type, xla::U64), in StatefulRngUniform() 301 xla::XlaOp minval = ctx->Input(3); in Compile() local 303 auto sample_with_threefry = [minval, maxval, this]( in Compile() 308 return StatefulRngUniform(key, counter, xla_shape, minval, maxval); in Compile()
|
D | stateless_random_ops.cc | 59 xla::XlaOp seed, xla::XlaOp minval, in StatelessRandomUniformImpl() argument 63 return xla::StatelessRngUniform({seed0, seed1}, shape, minval, maxval); in StatelessRandomUniformImpl() 134 xla::XlaOp minval = ctx->Input(2); in Compile() local 140 StatelessRandomUniformImpl(xla_shape, dtype_, seed, minval, maxval); in Compile()
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | stateful_random_ops_test.py | 63 gen.uniform(shape=(3,), minval=0, maxval=10, dtype=dtypes.uint32) 75 y = gen.uniform(shape=(3,), minval=0, maxval=10, dtype=dtypes.uint32) 165 minval = 2 172 shape=[size], dtype=dtype, minval=minval, maxval=maxval).numpy() 173 self.assertTrue(np.all(x >= minval))
|
/external/tensorflow/tensorflow/python/ops/linalg/ |
D | linear_operator_test_util.py | 630 shape[:-1], dtype=dtype, minval=1., maxval=maxval) 671 minval=None, argument 698 shape, dtype=dtype.real_dtype, minval=minval, maxval=maxval, seed=seed) 705 minval=minval, 713 minval=None, argument 741 shape, minval=minval, maxval=maxval, dtype=dtype, seed=seed) 745 random_ops.random_uniform(shape, minval=-1., maxval=1., seed=seed))
|
/external/tensorflow/tensorflow/compiler/tf2xla/python/ |
D | xla.py | 340 def random_uniform(minval, maxval, dims, name=None): argument 341 minval = ops.convert_to_tensor(minval) 343 dims, minval, maxval, dtype=minval.dtype, name=name)
|