/external/tensorflow/tensorflow/python/kernel_tests/ |
D | basic_gpu_test.py | 94 def _compare(self, x, np_func, tf_func, use_gpu): member in MathBuiltinUnaryTest 111 self._compare(data, np.abs, math_ops.abs, use_gpu) 112 self._compare(data, np.arccos, math_ops.acos, use_gpu) 113 self._compare(data, np.arcsin, math_ops.asin, use_gpu) 114 self._compare(data, np.arcsinh, math_ops.asinh, use_gpu) 115 self._compare(data_gt_1, np.arccosh, math_ops.acosh, use_gpu) 116 self._compare(data, np.arctan, math_ops.atan, use_gpu) 117 self._compare(data, np.ceil, math_ops.ceil, use_gpu) 118 self._compare(data, np.cos, math_ops.cos, use_gpu) 119 self._compare(data, np.cosh, math_ops.cosh, use_gpu) [all …]
|
D | cast_op_test.py | 122 def _compare(self, x, dst_dtype, expected, use_gpu=False): member in CastOpTest 131 self._compare(i4.min, np.float32, i4.min, False) 132 self._compare(i4.max, np.float32, i4.max, False) 133 self._compare(i8.min, np.float32, i8.min, False) 134 self._compare(i8.max, np.float32, i8.max, False) 135 self._compare(i4.min, np.float64, i4.min, False) 136 self._compare(i4.max, np.float64, i4.max, False) 137 self._compare(i8.min, np.float64, i8.min, False) 138 self._compare(i8.max, np.float64, i8.max, False) 142 self._compare(np.inf, np.float32, np.inf, False) [all …]
|
D | reduction_ops_test.py | 157 def _compare(self, x, reduction_axes, keepdims, feed_dict=None): member in BaseReductionTest 169 self._compare(x, reduction_axes, keepdims=False, feed_dict=feed_dict) 170 self._compare(x, reduction_axes, keepdims=True, feed_dict=feed_dict) 732 def _compare(self, x, reduction_axes, keepdims, use_gpu=False): member in MinReductionTest 748 self._compare(x, reduction_axes, False, use_gpu=True) 749 self._compare(x, reduction_axes, True, use_gpu=True) 848 def _compare(self, x, reduction_axes, keepdims, use_gpu=False): member in MaxReductionTest 864 self._compare(x, reduction_axes, False, use_gpu=True) 865 self._compare(x, reduction_axes, True, use_gpu=True) 978 def _compare(self, x, reduction_axes, keepdims, use_gpu=False): member in AllReductionTest [all …]
|
D | batchtospace_op_test.py | 269 def _compare(self, b, h, w, d, block_size, crop_beg, crop_end): member in BatchToSpaceGradientTest 286 self._compare(1, 2, 3, 5, block_size, crop_beg, crop_end) 293 self._compare(2, 4, 3, 2, block_size, crop_beg, crop_end) 300 self._compare(1, 2, 3, 5, block_size, crop_beg, crop_end) 328 def _compare(self, input_shape, block_shape, crops, crops_dtype): member in BatchToSpaceNDGradientTest 340 self._compare([1, 2, 3, 5], [2, 2], [[0, 0], [0, 0]], dtype) 345 self._compare([2, 4, 3, 2], [2, 2], [[0, 0], [0, 0]], dtype) 350 self._compare([1, 2, 3, 5], [2, 2], [[1, 1], [1, 1]], dtype)
|
D | batch_matmul_op_test.py | 58 def _compare(self, x_in, y_in, adjoint_a, adjoint_b, static_shape): member in BatchMatmulOpTest 81 self._compare( 101 self._compare( 119 self._compare( 178 def _compare(self, a_shape, b_shape, dtype, adjoint_a, adjoint_b): member in BatchMatmulGradientTest 189 self._compare(a_shape, b_shape, dtype, adjoint_a, adjoint_b) 201 self._compare(a_shape, b_shape, dtype, adjoint_a, adjoint_b)
|
D | cwise_ops_test.py | 122 def _compare(self, x, y, np_func, tf_func): member in ComparisonOpTest 136 self._compare(xt, yt, np.less, math_ops.less) 137 self._compare(xt, yt, np.less_equal, math_ops.less_equal) 138 self._compare(xt, yt, np.greater, math_ops.greater) 139 self._compare(xt, yt, np.greater_equal, math_ops.greater_equal) 140 self._compare(xt, yt, np.equal, math_ops.equal) 141 self._compare(xt, yt, np.not_equal, math_ops.not_equal) 149 self._compare(xt, yt, np.equal, math_ops.equal) 150 self._compare(xt, yt, np.not_equal, math_ops.not_equal) 158 self._compare(x, y, np_func, tf_func) [all …]
|
D | split_op_test.py | 224 def _compare(self, x, dim, num): member in SplitOpTest 240 self._compare(inp, 0, 4) 246 self._compare(inp, 1, 4) 274 self._compare(inp, 0, 1) 275 self._compare(inp, 1, 1) 276 self._compare(inp, 2, 1) 281 self._compare(self._makeData((6, 10, 18), dtype), 0, 3) 282 self._compare(self._makeData((6, 7, 18), dtype), 0, 3) 283 self._compare(self._makeData((6, 7, 9), dtype), 0, 3)
|
D | spacetobatch_op_test.py | 545 def _compare(self, b, h, w, d, block_size, pad_beg, pad_end): member in SpaceToBatchGradientTest 562 self._compare(1, 2, 3, 5, block_size, pad_beg, pad_end) 569 self._compare(2, 4, 3, 2, block_size, pad_beg, pad_end) 576 self._compare(1, 2, 3, 5, block_size, pad_beg, pad_end) 603 def _compare(self, input_shape, block_shape, paddings): member in SpaceToBatchNDGradientTest 612 self._compare([1, 4, 6, 5], [2, 2], [[0, 0], [0, 0]]) 616 self._compare([2, 8, 6, 2], [2, 2], [[0, 0], [0, 0]]) 620 self._compare([2, 4, 6, 2], [2, 2], [[1, 1], [1, 1]]) 624 self._compare([2, 2, 4, 3, 2], [2, 2, 2], [[1, 1], [1, 1], [1, 0]])
|
D | transpose_op_test.py | 105 def _compare(self, x, use_gpu=False): member in TransposeTest 141 self._compare(x, use_gpu=False) 142 self._compare(x, use_gpu=True) 150 self._compare(vector, use_gpu=False) 151 self._compare(vector, use_gpu=True) 367 self._compare(np.arange(0, 21).reshape([3, 7]).astype(np.float16)) 368 self._compare(np.arange(0, 210).reshape([2, 3, 5, 7]).astype(np.float16)) 369 self._compare(
|
D | depthtospace_op_test.py | 362 def _compare(self, b, h, w, d, block_size, data_format): member in DepthToSpaceGradientTest 378 self._compare(3, 2, 5, 3, block_size, "NHWC") 379 self._compare(3, 2, 5, 3, block_size, "NCHW") 384 self._compare(1, 2, 3, 2, block_size, "NHWC") 385 self._compare(1, 2, 3, 2, block_size, "NCHW")
|
D | spacetodepth_op_test.py | 358 def _compare(self, b, h, w, d, block_size, data_format): member in SpaceToDepthGradientTest 373 self._compare(1, 2, 3, 5, block_size, "NHWC") 374 self._compare(1, 2, 3, 5, block_size, "NCHW") 379 self._compare(2, 4, 3, 2, block_size, "NHWC") 380 self._compare(2, 4, 3, 2, block_size, "NCHW")
|
D | scan_ops_test.py | 80 def _compare(self, x, axis, exclusive, reverse): member in CumsumTest 90 self._compare(x, axis, exclusive, reverse) 213 def _compare(self, x, axis, exclusive, reverse): member in CumprodTest 223 self._compare(x, axis, exclusive, reverse)
|
D | cwise_ops_binary_test.py | 867 def _compare(self, x, y, np_func, tf_func): member in ComparisonOpTest 880 self._compare(xt, yt, np.less, math_ops.less) 881 self._compare(xt, yt, np.less_equal, math_ops.less_equal) 882 self._compare(xt, yt, np.greater, math_ops.greater) 883 self._compare(xt, yt, np.greater_equal, math_ops.greater_equal) 884 self._compare(xt, yt, np.equal, math_ops.equal) 885 self._compare(xt, yt, np.not_equal, math_ops.not_equal) 892 self._compare(xt, yt, np.equal, math_ops.equal) 893 self._compare(xt, yt, np.not_equal, math_ops.not_equal) 901 self._compare(x, y, np_func, tf_func) [all …]
|
D | constant_op_eager_test.py | 543 def _compare(self, dims, val, np_ans, use_gpu): member in FillTest 552 self._compare(dims, val, np_ans, False) 553 self._compare(dims, val, np_ans, True) 573 self._compare([2, 3], np_ans[0][0], np_ans, use_gpu=False) 577 self._compare([2, 3], np_ans[0][0], np_ans, use_gpu=False)
|
/external/selinux/python/sepolgen/src/sepolgen/ |
D | util.py | 125 def _compare(self, other, method): member in Comparison 129 return self._compare(other, lambda a, b: a == b) 132 return self._compare(other, lambda a, b: a < b) 135 return self._compare(other, lambda a, b: a <= b) 138 return self._compare(other, lambda a, b: a >= b) 141 return self._compare(other, lambda a, b: a > b) 144 return self._compare(other, lambda a, b: a != b)
|
/external/python/setuptools/pkg_resources/_vendor/packaging/ |
D | version.py | 48 return self._compare(other, lambda s, o: s < o) 51 return self._compare(other, lambda s, o: s <= o) 54 return self._compare(other, lambda s, o: s == o) 57 return self._compare(other, lambda s, o: s >= o) 60 return self._compare(other, lambda s, o: s > o) 63 return self._compare(other, lambda s, o: s != o) 65 def _compare(self, other, method): member in _BaseVersion
|
/external/python/setuptools/setuptools/_vendor/packaging/ |
D | version.py | 48 return self._compare(other, lambda s, o: s < o) 51 return self._compare(other, lambda s, o: s <= o) 54 return self._compare(other, lambda s, o: s == o) 57 return self._compare(other, lambda s, o: s >= o) 60 return self._compare(other, lambda s, o: s > o) 63 return self._compare(other, lambda s, o: s != o) 65 def _compare(self, other, method): member in _BaseVersion
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | jit_test.py | 99 def _compare(self, member in JitLaunchTest 166 self._compare( 172 self._compare( 183 self._compare(OneConstOutput, [], require_kernel_launch=False) 191 self._compare(ConstZeroElementOutput, [], require_kernel_launch=False) 200 self._compare( 213 self._compare(AddToSelf, [np.array([7, 1, 3], dtype=np.int32)]) 221 self._compare(FillWithFloat, [np.array([3, 2], dtype=np.int32)]) 236 self._compare(MnistForward, [w, b, x])
|
D | scan_ops_test.py | 80 def _compare(self, x, axis, exclusive, reverse): member in CumsumTest 92 self._compare(x, axis, exclusive, reverse) 159 def _compare(self, x, axis, exclusive, reverse): member in CumprodTest 171 self._compare(x, axis, exclusive, reverse)
|
/external/freetype/src/cache/ |
D | ftcmru.h | 167 FTC_MruNode_CompareFunc _compare = (FTC_MruNode_CompareFunc)(compare); \ 180 if ( _compare( _node, (key) ) ) \
|
/external/autotest/client/common_lib/test_utils/ |
D | mock.py | 53 def _compare(cls, actual_arg, expected_arg): member in equality_comparator 64 if not cls._compare(actual_item, expected_item): 68 if not cls._compare(sorted(actual_arg.keys()), 72 if not cls._compare(value, expected_arg[key]): 81 return self._compare(parameter, self.value)
|
/external/libdivsufsort/lib/ |
D | utils.c | 246 _compare(const sauchar_t *T, saidx_t Tsize, in _compare() function 279 r = _compare(T, Tsize, P, Psize, SA[i + half], &match); in sa_search() 294 r = _compare(T, Tsize, P, Psize, SA[j + half], &lmatch); in sa_search() 309 r = _compare(T, Tsize, P, Psize, SA[k + half], &rmatch); in sa_search()
|
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/ |
D | map_vectorization_benchmark.py | 108 def _compare(self, input_dataset, map_fn, batch_size, input_size, str_id): member in MapVectorizationBenchmark 188 self._compare(base_dataset, map_fn, batch_size, input_size, str_id)
|
/external/tensorflow/tensorflow/python/kernel_tests/signal/ |
D | dct_ops_test.py | 152 def _compare(self, signals, n, norm, dct_type, atol, rtol): member in DCTOpsTest 198 self._compare(signals, n, norm=norm, dct_type=dct_type,
|
D | fft_ops_test.py | 46 def _compare(self, x, rank, fft_length=None, use_placeholder=False, member in BaseFFTOpsTest 192 self._compare( 201 self._compare( 222 self._compare( 238 self._compare(gen((4,) * dims).astype(np_type), rank, 258 self._compare(gen((dim,)).astype(np_type), 1, rtol=tol, atol=tol)
|