Home
last modified time | relevance | path

Searched refs:_compare (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/python/kernel_tests/
Dcast_op_test.py126 def _compare(self, x, dst_dtype, expected, use_gpu=False): member in CastOpTest
136 self._compare(i4.min, np.float32, i4.min, False)
137 self._compare(i4.max, np.float32, i4.max, False)
138 self._compare(i8.min, np.float32, i8.min, False)
139 self._compare(i8.max, np.float32, i8.max, False)
140 self._compare(i4.min, np.float64, i4.min, False)
141 self._compare(i4.max, np.float64, i4.max, False)
142 self._compare(i8.min, np.float64, i8.min, False)
143 self._compare(i8.max, np.float64, i8.max, False)
151 self._compare(np.inf, np.float32, np.inf, False)
[all …]
Dbasic_gpu_test.py94 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 …]
Dreduction_ops_test.py138 def _compare(self, x, reduction_axes, keepdims, feed_dict=None): member in BaseReductionTest
150 self._compare(x, reduction_axes, keepdims=False, feed_dict=feed_dict)
151 self._compare(x, reduction_axes, keepdims=True, feed_dict=feed_dict)
666 def _compare(self, x, reduction_axes, keepdims, use_gpu=False): member in MinReductionTest
682 self._compare(x, reduction_axes, False, use_gpu=True)
683 self._compare(x, reduction_axes, False, use_gpu=False)
684 self._compare(x, reduction_axes, True, use_gpu=True)
685 self._compare(x, reduction_axes, True, use_gpu=False)
785 def _compare(self, x, reduction_axes, keepdims, use_gpu=False): member in MaxReductionTest
801 self._compare(x, reduction_axes, False, use_gpu=True)
[all …]
Dbatchtospace_op_test.py269 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)
Dcwise_ops_test.py120 def _compare(self, x, y, np_func, tf_func): member in ComparisonOpTest
133 self._compare(xt, yt, np.less, math_ops.less)
134 self._compare(xt, yt, np.less_equal, math_ops.less_equal)
135 self._compare(xt, yt, np.greater, math_ops.greater)
136 self._compare(xt, yt, np.greater_equal, math_ops.greater_equal)
137 self._compare(xt, yt, np.equal, math_ops.equal)
138 self._compare(xt, yt, np.not_equal, math_ops.not_equal)
145 self._compare(xt, yt, np.equal, math_ops.equal)
146 self._compare(xt, yt, np.not_equal, math_ops.not_equal)
154 self._compare(x, y, np_func, tf_func)
[all …]
Dsplit_op_test.py224 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)
Dbatch_matmul_op_test.py80 def _compare(self, x_in, y_in, adjoint_a, adjoint_b, static_shape=True): member in BatchMatmulOpTest
110 self._compare(
127 self._compare(
174 def _compare(self, b, n, k, m, dtype, adjoint_a, adjoint_b): member in BatchMatmulGradientTest
191 self._compare(1, 2, 3, 5, dtype, adjoint_a, adjoint_b)
192 self._compare(3, 4, 7, 10, dtype, adjoint_a, adjoint_b)
Dspacetobatch_op_test.py545 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]])
Dtranspose_op_test.py104 def _compare(self, x, use_gpu=False): member in TransposeTest
140 self._compare(x, use_gpu=False)
141 self._compare(x, use_gpu=True)
148 self._compare(vector, use_gpu=False)
149 self._compare(vector, use_gpu=True)
349 self._compare(np.arange(0, 21).reshape([3, 7]).astype(np.float16))
350 self._compare(np.arange(0, 210).reshape([2, 3, 5, 7]).astype(np.float16))
351 self._compare(
Ddepthtospace_op_test.py348 def _compare(self, b, h, w, d, block_size, data_format): member in DepthToSpaceGradientTest
364 self._compare(3, 2, 5, 3, block_size, "NHWC")
365 self._compare(3, 2, 5, 3, block_size, "NCHW")
370 self._compare(1, 2, 3, 2, block_size, "NHWC")
371 self._compare(1, 2, 3, 2, block_size, "NCHW")
Dspacetodepth_op_test.py333 def _compare(self, b, h, w, d, block_size, data_format): member in SpaceToDepthGradientTest
349 self._compare(1, 2, 3, 5, block_size, "NHWC")
350 self._compare(1, 2, 3, 5, block_size, "NCHW")
355 self._compare(2, 4, 3, 2, block_size, "NHWC")
356 self._compare(2, 4, 3, 2, block_size, "NCHW")
Dscan_ops_test.py80 def _compare(self, x, axis, exclusive, reverse): member in CumsumTest
90 self._compare(x, axis, exclusive, reverse)
204 def _compare(self, x, axis, exclusive, reverse): member in CumprodTest
214 self._compare(x, axis, exclusive, reverse)
Dcwise_ops_binary_test.py852 def _compare(self, x, y, np_func, tf_func): member in ComparisonOpTest
865 self._compare(xt, yt, np.less, math_ops.less)
866 self._compare(xt, yt, np.less_equal, math_ops.less_equal)
867 self._compare(xt, yt, np.greater, math_ops.greater)
868 self._compare(xt, yt, np.greater_equal, math_ops.greater_equal)
869 self._compare(xt, yt, np.equal, math_ops.equal)
870 self._compare(xt, yt, np.not_equal, math_ops.not_equal)
877 self._compare(xt, yt, np.equal, math_ops.equal)
878 self._compare(xt, yt, np.not_equal, math_ops.not_equal)
886 self._compare(x, y, np_func, tf_func)
[all …]
Dconstant_op_eager_test.py525 def _compare(self, dims, val, np_ans, use_gpu): member in FillTest
534 self._compare(dims, val, np_ans, False)
535 self._compare(dims, val, np_ans, True)
555 self._compare([2, 3], np_ans[0][0], np_ans, use_gpu=False)
559 self._compare([2, 3], np_ans[0][0], np_ans, use_gpu=False)
/external/selinux/python/sepolgen/src/sepolgen/
Dutil.py125 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/setuptools/_vendor/packaging/
Dversion.py48 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/pkg_resources/_vendor/packaging/
Dversion.py48 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/python/kernel_tests/signal/
Ddct_ops_test.py106 def _compare(self, signals, norm, dct_type, atol=5e-4, rtol=5e-4): member in DCTOpsTest
143 self._compare(signals, norm=None, dct_type=1)
145 self._compare(signals, norm, 2)
146 self._compare(signals, norm, 3)
Dfft_ops_test.py42 def _compare(self, x, rank, fft_length=None, use_placeholder=False, member in BaseFFTOpsTest
177 self._compare(
186 self._compare(
206 self._compare(
223 self._compare(gen((4,) * dims).astype(np_type), rank,
243 self._compare(gen((dim,)).astype(np_type), 1, rtol=tol, atol=tol)
247 self._compare(gen((dim,)).astype(np_type), 1, rtol=tol, atol=tol)
/external/tensorflow/tensorflow/compiler/tests/
Djit_test.py98 def _compare(self, fn, args, require_kernel_launch=True, noinline=None): member in JitLaunchTest
166 self._compare(
177 self._compare(OneConstOutput, [], require_kernel_launch=False)
185 self._compare(ConstZeroElementOutput, [], require_kernel_launch=False)
194 self._compare(
207 self._compare(AddToSelf, [np.array([7, 1, 3], dtype=np.int32)])
215 self._compare(FillWithFloat, [np.array([3, 2], dtype=np.int32)])
230 self._compare(MnistForward, [w, b, x])
Dscan_ops_test.py79 def _compare(self, x, axis, exclusive, reverse): member in CumsumTest
91 self._compare(x, axis, exclusive, reverse)
157 def _compare(self, x, axis, exclusive, reverse): member in CumprodTest
169 self._compare(x, axis, exclusive, reverse)
/external/autotest/client/common_lib/test_utils/
Dmock.py53 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/freetype/src/cache/
Dftcmru.h167 FTC_MruNode_CompareFunc _compare = (FTC_MruNode_CompareFunc)(compare); \
180 if ( _compare( _node, (key) ) ) \
/external/libdivsufsort/lib/
Dutils.c246 _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/
Dmap_vectorization_benchmark.py115 def _compare(self, input_dataset, map_fn, batch_size, input_size, str_id): member in MapVectorizationBenchmark
197 self._compare(base_dataset, map_fn, batch_size, input_size, str_id)

12