Home
last modified time | relevance | path

Searched refs:maxval (Results 1 – 25 of 170) sorted by relevance

1234567

/external/libjpeg-turbo/
Drdppm.c78 unsigned int maxval; member
102 read_pbm_integer(j_compress_ptr cinfo, FILE *infile, unsigned int maxval) in read_pbm_integer() argument
127 if (val > maxval) in read_pbm_integer()
154 unsigned int maxval = source->maxval; in get_text_gray_row() local
158 *ptr++ = rescale[read_pbm_integer(cinfo, infile, maxval)]; in get_text_gray_row()
182 unsigned int maxval = source->maxval; in get_text_gray_rgb_row() local
190 if (maxval == MAXJSAMPLE) { in get_text_gray_rgb_row()
192 GRAY_RGB_READ_LOOP(read_pbm_integer(cinfo, infile, maxval), in get_text_gray_rgb_row()
195 GRAY_RGB_READ_LOOP(read_pbm_integer(cinfo, infile, maxval),) in get_text_gray_rgb_row()
198 GRAY_RGB_READ_LOOP(rescale[read_pbm_integer(cinfo, infile, maxval)], in get_text_gray_rgb_row()
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dstateful_random_ops_test.py63 gen.uniform(shape=(3,), minval=0, maxval=10, dtype=dtypes.uint32)
75 y = gen.uniform(shape=(3,), minval=0, maxval=10, dtype=dtypes.uint32)
144 maxval = dtype.max
147 maxval = 10000000
148 return gen.uniform(shape=[2], dtype=dtype, maxval=maxval)
166 maxval = 33
172 shape=[size], dtype=dtype, minval=minval, maxval=maxval).numpy()
174 self.assertTrue(np.all(x < maxval))
200 maxval = 1
202 maxval = 100
[all …]
Dstateless_random_ops_test.py68 maxval = 1
70 maxval = 100
73 shape=[1000], seed=seed_t, maxval=maxval, dtype=dtype)
76 self.assertTrue(np.all(y < maxval))
92 maxval = 1
94 maxval = 100
96 shape=[n], seed=seed_t, maxval=maxval, dtype=dtype)
98 if maxval > 1:
100 y = y.astype(float) / maxval
/external/tensorflow/tensorflow/python/kernel_tests/
Dparameterized_truncated_normal_op_test.py52 maxval = None variable in TruncatedNormalMoments
54 def __init__(self, mean, stddev, minval, maxval): argument
60 self.maxval = np.double(min(10, maxval))
82 numerator = (np.power(self.maxval, k - 1) * dist.pdf(self.maxval) -
84 denominator = dist.cdf(self.maxval) - dist.cdf(self.minval)
121 def validateMoments(self, shape, mean, stddev, minval, maxval, seed=1618): argument
130 maxval).eval()
133 expected_moments = TruncatedNormalMoments(mean, stddev, minval, maxval)
146 maxval, argument
154 maxval).eval()
[all …]
/external/tensorflow/tensorflow/python/ops/
Dstateless_random_ops.py41 maxval=None, argument
86 if maxval is None:
89 maxval = 1
91 [shape, seed, minval, maxval]) as name:
94 maxval = ops.convert_to_tensor(maxval, dtype=dtype, name="max")
97 shape, seed=seed, minval=minval, maxval=maxval, name=name)
101 return math_ops.add(rnd * (maxval - minval), minval, name=name)
Dstateful_random_ops.py224 def uniform(self, shape, minval=0, maxval=None, argument
227 if maxval is None:
230 maxval = 1
232 [shape, minval, maxval]) as name:
235 maxval = ops.convert_to_tensor(maxval, dtype=dtype, name="max")
239 minval=minval, maxval=maxval, name=name)
Drandom_ops.py192 maxval=None, argument
234 if maxval is None:
237 maxval = 1
238 with ops.name_scope(name, "random_uniform", [shape, minval, maxval]) as name:
241 maxval = ops.convert_to_tensor(maxval, dtype=dtype, name="max")
245 shape, minval, maxval, seed=seed1, seed2=seed2, name=name)
248 return math_ops.add(rnd * (maxval - minval), minval, name=name)
325 maxval=size.dtype.max,
/external/libpng/contrib/pngminus/
Dpnm2png.c223 png_uint_32 maxval; in pnm2png() local
273 maxval = (png_uint_32) ul_maxval; in pnm2png()
275 if (maxval <= 1) in pnm2png()
277 else if (maxval <= 3) in pnm2png()
279 else if (maxval <= 15) in pnm2png()
281 else if (maxval <= 255) in pnm2png()
298 maxval = (png_uint_32) ul_maxval; in pnm2png()
299 if (maxval <= 1) in pnm2png()
301 else if (maxval <= 3) in pnm2png()
303 else if (maxval <= 15) in pnm2png()
[all …]
/external/fonttools/Tests/misc/
DxmlReader_test.py80 def __init__(self, title, maxval=100): argument
82 self.maxval = maxval
85 def set(self, val, maxval=None): argument
86 if maxval is not None:
87 self.maxval = maxval
112 self.assertEqual(progressBar.maxval, dataSize // 100)
118 self.assertEqual(progressBar.maxval, 1)
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_StatefulUniformInt.pbtxt29 name: "maxval"
48 The generated values are uniform integers in the range `[minval, maxval)`.
50 `maxval` is excluded.
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
Dapi_def_RandomUniformInt.pbtxt16 name: "maxval"
43 The generated values are uniform integers in the range `[minval, maxval)`.
45 `maxval` is excluded.
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
/external/tensorflow/tensorflow/core/kernels/
Dmaxpooling_op_gpu.cu.cc83 dtype maxval = Eigen::NumTraits<dtype>::lowest(); in MaxPoolForwardNCHW() local
90 if (IsGreaterThan<propagate_nans>(bottom_data_n[idx], maxval)) { in MaxPoolForwardNCHW()
92 maxval = bottom_data_n[idx]; in MaxPoolForwardNCHW()
96 top_data[index] = maxval; in MaxPoolForwardNCHW()
127 int32 maxval = kMinINT8X4; in MaxPoolForwardNoMaskKernel_NCHW_VECT_C() local
132 maxval = __vmaxs4(maxval, bottom_data_n[idx]); in MaxPoolForwardNoMaskKernel_NCHW_VECT_C()
135 top_data[index] = maxval; in MaxPoolForwardNoMaskKernel_NCHW_VECT_C()
158 dtype maxval = Eigen::NumTraits<dtype>::lowest(); in MaxPoolForwardNHWC() local
165 if (IsGreaterThan<propagate_nans>(bottom_data_n[idx], maxval)) { in MaxPoolForwardNHWC()
167 maxval = bottom_data_n[idx]; in MaxPoolForwardNHWC()
[all …]
/external/libopus/celt/
Dmathops.h83 opus_val16 maxval = 0; in celt_maxabs16() local
87 maxval = MAX16(maxval, x[i]); in celt_maxabs16()
90 return MAX32(EXTEND32(maxval),-EXTEND32(minval)); in celt_maxabs16()
99 opus_val32 maxval = 0; in celt_maxabs32() local
103 maxval = MAX32(maxval, x[i]); in celt_maxabs32()
106 return MAX32(maxval, -minval); in celt_maxabs32()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dprng.cc154 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
176 auto range = BitcastConvertType(maxval, unsigned_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()
/external/libpng/contrib/gregbook/
Dreadppm.c84 int maxval; in readpng_init() local
114 sscanf(ppmline, "%d", &maxval); in readpng_init()
115 if (maxval != 255) { in readpng_init()
116 fprintf(stderr, "ERROR: maxval = %d\n", maxval); in readpng_init()
/external/llvm/test/CodeGen/Hexagon/
Dmaxud.ll4 define i64 @f(i64 %src, i64 %maxval) nounwind readnone {
6 %cmp = icmp ult i64 %maxval, %src
7 %cond = select i1 %cmp, i64 %src, i64 %maxval
Dminuw.ll4 define i32 @f(i32 %src, i32 %maxval) nounwind readnone {
6 %cmp = icmp ugt i32 %maxval, %src
7 %cond = select i1 %cmp, i32 %src, i32 %maxval
Dminud.ll4 define i64 @f(i64 %src, i64 %maxval) nounwind readnone {
6 %cmp = icmp ugt i64 %maxval, %src
7 %cond = select i1 %cmp, i64 %src, i64 %maxval
Dmaxuw.ll4 define i32 @f(i32 %src, i32 %maxval) nounwind readnone {
6 %cmp = icmp ult i32 %maxval, %src
7 %cond = select i1 %cmp, i32 %src, i32 %maxval
Dminw.ll4 define i32 @f(i32 %src, i32 %maxval) nounwind readnone {
6 %cmp = icmp sgt i32 %maxval, %src
7 %cond = select i1 %cmp, i32 %src, i32 %maxval
Dmind.ll4 define i64 @f(i64 %src, i64 %maxval) nounwind readnone {
6 %cmp = icmp sgt i64 %maxval, %src
7 %cond = select i1 %cmp, i64 %src, i64 %maxval
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Hexagon/
Dmaxuw.ll4 define i32 @f(i32 %src, i32 %maxval) nounwind readnone {
6 %cmp = icmp ult i32 %maxval, %src
7 %cond = select i1 %cmp, i32 %src, i32 %maxval
Dminuw.ll4 define i32 @f(i32 %src, i32 %maxval) nounwind readnone {
6 %cmp = icmp ugt i32 %maxval, %src
7 %cond = select i1 %cmp, i32 %src, i32 %maxval
Dmaxud.ll4 define i64 @f(i64 %src, i64 %maxval) nounwind readnone {
6 %cmp = icmp ult i64 %maxval, %src
7 %cond = select i1 %cmp, i64 %src, i64 %maxval
Dmind.ll4 define i64 @f(i64 %src, i64 %maxval) nounwind readnone {
6 %cmp = icmp sgt i64 %maxval, %src
7 %cond = select i1 %cmp, i64 %src, i64 %maxval

1234567