/external/tensorflow/tensorflow/python/kernel_tests/ |
cast_op_test.py | 122 def _compare(self, x, dst_dtype, expected, use_gpu=False): member in class: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) 145 self._compare(np.inf, np.float32, np.inf, False [all...] |
basic_gpu_test.py | 94 def _compare(self, x, np_func, tf_func, use_gpu): member in class: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...] |
batchtospace_op_test.py | 254 def _compare(self, b, h, w, d, block_size, crop_beg, crop_end): member in class:BatchToSpaceGradientTest 270 self._compare(1, 2, 3, 5, block_size, crop_beg, crop_end) 276 self._compare(2, 4, 3, 2, block_size, crop_beg, crop_end) 282 self._compare(1, 2, 3, 5, block_size, crop_beg, crop_end) 310 def _compare(self, input_shape, block_shape, crops, crops_dtype): member in class:BatchToSpaceNDGradientTest 321 self._compare([1, 2, 3, 5], [2, 2], [[0, 0], [0, 0]], dtype) 325 self._compare([2, 4, 3, 2], [2, 2], [[0, 0], [0, 0]], dtype) 329 self._compare([1, 2, 3, 5], [2, 2], [[1, 1], [1, 1]], dtype)
|
dct_ops_test.py | 64 def _compare(self, signals, norm, atol=5e-4, rtol=5e-4): member in class:DCTOpsTest 80 self._compare(signals, norm)
|
reduction_ops_test.py | 131 def _compare(self, x, reduction_axes, keepdims, feed_dict=None): member in class:BaseReductionTest 143 self._compare(x, reduction_axes, keepdims=False, feed_dict=feed_dict) 144 self._compare(x, reduction_axes, keepdims=True, feed_dict=feed_dict) 552 def _compare(self, x, reduction_axes, keepdims, use_gpu=False): member in class:MinReductionTest 568 self._compare(x, reduction_axes, False, use_gpu=True) 569 self._compare(x, reduction_axes, False, use_gpu=False) 570 self._compare(x, reduction_axes, True, use_gpu=True) 571 self._compare(x, reduction_axes, True, use_gpu=False) 665 def _compare(self, x, reduction_axes, keepdims, use_gpu=False): member in class:MaxReductionTest 681 self._compare(x, reduction_axes, False, use_gpu=True 792 def _compare(self, x, reduction_axes, keepdims, use_gpu=False): member in class:AllReductionTest 841 def _compare(self, x, reduction_axes, keepdims, use_gpu=False): member in class:AnyReductionTest 890 def _compare(self, member in class:CountNonzeroReductionTest [all...] |
split_op_test.py | 201 def _compare(self, x, dim, num): member in class:SplitOpTest 217 self._compare(inp, 0, 4) 223 self._compare(inp, 1, 4) 251 self._compare(inp, 0, 1) 252 self._compare(inp, 1, 1) 253 self._compare(inp, 2, 1) 258 self._compare(self._makeData((6, 10, 18), dtype), 0, 3) 259 self._compare(self._makeData((6, 7, 18), dtype), 0, 3) 260 self._compare(self._makeData((6, 7, 9), dtype), 0, 3)
|
batch_matmul_op_test.py | 79 def _compare(self, x_in, y_in, adjoint_a, adjoint_b, static_shape=True): member in class:BatchMatmulOpTest 109 self._compare( 126 self._compare( 176 def _compare(self, b, n, k, m, dtype, adjoint_a, adjoint_b): member in class:BatchMatmulGradientTest 192 self._compare(1, 2, 3, 5, dtype, adjoint_a, adjoint_b) 193 self._compare(3, 4, 7, 10, dtype, adjoint_a, adjoint_b)
|
depthtospace_op_test.py | 309 def _compare(self, b, h, w, d, block_size, data_format): member in class:DepthToSpaceGradientTest 324 self._compare(3, 2, 5, 3, block_size, "NHWC") 325 self._compare(3, 2, 5, 3, block_size, "NCHW") 329 self._compare(1, 2, 3, 2, block_size, "NHWC") 330 self._compare(1, 2, 3, 2, block_size, "NCHW")
|
spacetodepth_op_test.py | 302 def _compare(self, b, h, w, d, block_size, data_format): member in class:SpaceToDepthGradientTest 317 self._compare(1, 2, 3, 5, block_size, "NHWC") 318 self._compare(1, 2, 3, 5, block_size, "NCHW") 322 self._compare(2, 4, 3, 2, block_size, "NHWC") 323 self._compare(2, 4, 3, 2, block_size, "NCHW")
|
scan_ops_test.py | 79 def _compare(self, x, axis, exclusive, reverse): member in class:CumsumTest 89 self._compare(x, axis, exclusive, reverse) 185 def _compare(self, x, axis, exclusive, reverse): member in class:CumprodTest 195 self._compare(x, axis, exclusive, reverse)
|
spacetobatch_op_test.py | 513 def _compare(self, b, h, w, d, block_size, pad_beg, pad_end): member in class:SpaceToBatchGradientTest 529 self._compare(1, 2, 3, 5, block_size, pad_beg, pad_end) 535 self._compare(2, 4, 3, 2, block_size, pad_beg, pad_end) 541 self._compare(1, 2, 3, 5, block_size, pad_beg, pad_end) 568 def _compare(self, input_shape, block_shape, paddings): member in class:SpaceToBatchNDGradientTest 576 self._compare([1, 4, 6, 5], [2, 2], [[0, 0], [0, 0]]) 579 self._compare([2, 8, 6, 2], [2, 2], [[0, 0], [0, 0]]) 582 self._compare([2, 4, 6, 2], [2, 2], [[1, 1], [1, 1]]) 585 self._compare([2, 2, 4, 3, 2], [2, 2, 2], [[1, 1], [1, 1], [1, 0]])
|
transpose_op_test.py | 94 def _compare(self, x, use_gpu=False): member in class:TransposeTest 125 self._compare(x, use_gpu=False) 126 self._compare(x, use_gpu=True) 133 self._compare(vector, use_gpu=False) 134 self._compare(vector, use_gpu=True) 334 self._compare(np.arange(0, 21).reshape([3, 7]).astype(np.float16)) 335 self._compare(np.arange(0, 210).reshape([2, 3, 5, 7]).astype(np.float16)) 336 self._compare(
|
cwise_ops_test.py | 1234 def _compare(self, x, y, np_func, tf_func): member in class:ComparisonOpTest 1431 def _compare(self, c, x, y, use_gpu): member in class:SelectOpTest 1572 def _compare(self, c, x, y, use_gpu): member in class:BatchSelectOpTest 1679 def _compare(self, x, y, use_gpu): member in class:MinMaxOpTest 1841 def _compare(self, x, use_gpu): member in class:IsFiniteInfNanTest 1903 def _compare(self, x): member in class:RoundingTest [all...] |
constant_op_eager_test.py | 494 def _compare(self, dims, val, np_ans, use_gpu): member in class:FillTest 503 self._compare(dims, val, np_ans, False) 504 self._compare(dims, val, np_ans, True) 524 self._compare([2, 3], np_ans[0][0], np_ans, use_gpu=False) 528 self._compare([2, 3], np_ans[0][0], np_ans, use_gpu=False)
|
fft_ops_test.py | 41 def _compare(self, x, rank, fft_length=None, use_placeholder=False): member in class:BaseFFTOpsTest 168 self._compare( 176 self._compare( 194 self._compare( 212 self._compare(gen((4,) * dims), rank)
|
/external/selinux/python/sepolgen/src/sepolgen/ |
util.py | 125 _compare function within your class.""" 127 def _compare(self, other, method): member in class:Comparison 131 return self._compare(other, lambda a, b: a == b) 134 return self._compare(other, lambda a, b: a < b) 137 return self._compare(other, lambda a, b: a <= b) 140 return self._compare(other, lambda a, b: a >= b) 143 return self._compare(other, lambda a, b: a > b) 146 return self._compare(other, lambda a, b: a != b)
|
access.py | 141 def _compare(self, other, method): member in class:AccessVector
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/sepolgen/ |
util.py | 125 _compare function within your class.""" 127 def _compare(self, other, method): member in class:Comparison 131 return self._compare(other, lambda a, b: a == b) 134 return self._compare(other, lambda a, b: a < b) 137 return self._compare(other, lambda a, b: a <= b) 140 return self._compare(other, lambda a, b: a >= b) 143 return self._compare(other, lambda a, b: a > b) 146 return self._compare(other, lambda a, b: a != b)
|
/external/freetype/src/cache/ |
ftcmru.h | 167 FTC_MruNode_CompareFunc _compare = (FTC_MruNode_CompareFunc)(compare); \ 180 if ( _compare( _node, (key) ) ) \
|
/external/tensorflow/tensorflow/compiler/tests/ |
jit_test.py | 82 def _compare(self, fn, args, require_kernel_launch=True, noinline=None): member in class:JitLaunchTest 145 # self._compare( 151 self._compare( 162 self._compare(OneConstOutput, [], require_kernel_launch=False) 170 self._compare(ConstZeroElementOutput, [], require_kernel_launch=False) 179 self._compare( 192 self._compare(AddToSelf, [np.array([7, 1, 3], dtype=np.int32)]) 200 self._compare(FillWithFloat, [np.array([3, 2], dtype=np.int32)]) 215 self._compare(MnistForward, [w, b, x])
|
scan_ops_test.py | 79 def _compare(self, x, axis, exclusive, reverse): member in class:CumsumTest 91 self._compare(x, axis, exclusive, reverse) 157 def _compare(self, x, axis, exclusive, reverse): member in class:CumprodTest 169 self._compare(x, axis, exclusive, reverse)
|
/prebuilts/misc/windows/sdl2/test/ |
testautomation_render.c | 32 static void _compare(SDL_Surface *reference, int allowable_error); 190 _compare(referenceSurface, ALLOWABLE_ERROR_OPAQUE ); 331 _compare(referenceSurface, ALLOWABLE_ERROR_BLENDED ); 395 _compare(referenceSurface, ALLOWABLE_ERROR_OPAQUE ); 463 _compare(referenceSurface, ALLOWABLE_ERROR_OPAQUE ); 534 _compare(referenceSurface, ALLOWABLE_ERROR_BLENDED ); 647 _compare(referenceSurface, ALLOWABLE_ERROR_OPAQUE ); 654 _compare(referenceSurface, ALLOWABLE_ERROR_BLENDED ); 661 _compare(referenceSurface, ALLOWABLE_ERROR_BLENDED ); 668 _compare(referenceSurface, ALLOWABLE_ERROR_BLENDED ) 948 _compare(SDL_Surface *referenceSurface, int allowable_error) function [all...] |
/external/libdivsufsort/lib/ |
utils.c | 246 _compare(const sauchar_t *T, saidx_t Tsize, function 279 r = _compare(T, Tsize, P, Psize, SA[i + half], &match); 294 r = _compare(T, Tsize, P, Psize, SA[j + half], &lmatch); 309 r = _compare(T, Tsize, P, Psize, SA[k + half], &rmatch);
|
/external/autotest/client/common_lib/test_utils/ |
mock.py | 53 def _compare(cls, actual_arg, expected_arg): member in class: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/tensorflow/tensorflow/contrib/signal/python/kernel_tests/ |
spectral_ops_test.py | 82 def _compare(self, signal, frame_length, frame_step, fft_length): member in class:SpectralOpsTest 167 self._compare(signal, frame_length, frame_step, fft_length)
|