Home
last modified time | relevance | path

Searched refs:nums (Results 1 – 25 of 81) sorted by relevance

1234

/external/tensorflow/tensorflow/core/lib/strings/
Dstr_util_test.cc271 std::vector<int32> nums; in TEST() local
272 EXPECT_TRUE(str_util::SplitAndParseAsInts("", ',', &nums)); in TEST()
273 EXPECT_EQ(nums.size(), 0); in TEST()
275 EXPECT_TRUE(str_util::SplitAndParseAsInts("134", ',', &nums)); in TEST()
276 EXPECT_EQ(nums.size(), 1); in TEST()
277 EXPECT_EQ(nums[0], 134); in TEST()
279 EXPECT_TRUE(str_util::SplitAndParseAsInts("134,2,13,-5", ',', &nums)); in TEST()
280 EXPECT_EQ(nums.size(), 4); in TEST()
281 EXPECT_EQ(nums[0], 134); in TEST()
282 EXPECT_EQ(nums[1], 2); in TEST()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dmap_fn_test.py56 nums = [1, 2, 3, 4, 5, 6]
57 elems = constant_op.constant(nums, name="data")
61 np.array([(x + 3) * 2 for x in nums]), self.evaluate(r))
133 nums = np.array([1, 2, 3, 4, 5, 6])
135 lambda x: math_ops.multiply(math_ops.add(x, 3), 2), nums)
137 np.array([(x + 3) * 2 for x in nums]), self.evaluate(r))
141 nums = np.array([1, 2, 3, 4, 5, 6])
144 nums,
150 self.assertAllEqual((nums + 3) * 2, received[0])
151 self.assertAllEqual(-(nums + 3) * 2, received[1])
[all …]
/external/skqp/experimental/canvaskit/htmlcanvas/
Dcolor.js71 var nums = colorStr.split(',');
72 return CanvasKit.Color(+nums[0], +nums[1], +nums[2],
73 valueOrPercent(nums[3]));
77 var nums = colorStr.split(',');
79 return CanvasKit.Color(+nums[0], +nums[1], +nums[2],
80 valueOrPercent(nums[3]));
/external/skia/modules/canvaskit/htmlcanvas/
Dcolor.js71 var nums = colorStr.split(',');
72 return CanvasKit.Color(+nums[0], +nums[1], +nums[2],
73 valueOrPercent(nums[3]));
77 var nums = colorStr.split(',');
79 return CanvasKit.Color(+nums[0], +nums[1], +nums[2],
80 valueOrPercent(nums[3]));
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DBigIntegerMath.java188 static BigInteger listProduct(List<BigInteger> nums) { in listProduct() argument
189 return listProduct(nums, 0, nums.size()); in listProduct()
192 static BigInteger listProduct(List<BigInteger> nums, int start, int end) { in listProduct() argument
197 return nums.get(start); in listProduct()
199 return nums.get(start).multiply(nums.get(start + 1)); in listProduct()
201 return nums.get(start).multiply(nums.get(start + 1)).multiply(nums.get(start + 2)); in listProduct()
205 return listProduct(nums, start, m).multiply(listProduct(nums, m, end)); in listProduct()
/external/pdfium/core/fxcrt/
Dcfx_decimal.cpp41 inline uint8_t decimal_helper_div10_any(uint64_t nums[], uint8_t numcount) { in decimal_helper_div10_any() argument
44 nums[i - 1] += FXMATH_DECIMAL_LSHIFT32BIT(nums[i] % 0xA); in decimal_helper_div10_any()
45 nums[i] /= 0xA; in decimal_helper_div10_any()
48 retVal = nums[0] % 0xA; in decimal_helper_div10_any()
49 nums[0] /= 0xA; in decimal_helper_div10_any()
62 inline void decimal_helper_mul10_any(uint64_t nums[], uint8_t numcount) { in decimal_helper_mul10_any() argument
63 nums[0] *= 0xA; in decimal_helper_mul10_any()
65 nums[i] = nums[i] * 0xA + FXMATH_DECIMAL_RSHIFT32BIT(nums[i - 1]); in decimal_helper_mul10_any()
66 nums[i - 1] = (uint32_t)nums[i - 1]; in decimal_helper_mul10_any()
81 inline void decimal_helper_normalize_any(uint64_t nums[], uint8_t len) { in decimal_helper_normalize_any() argument
[all …]
/external/tensorflow/tensorflow/python/ops/
Dmath_ops_test.py423 nums = np.arange(-10, 10, 1).reshape(20, 1)
425 return nums, divs
428 nums = np.arange(-10, 10, .25).reshape(80, 1)
430 return nums, divs
434 nums, divs = self.intTestData()
438 tf_result = math_ops.floormod(nums, divs).eval()
439 np_result = nums % divs
444 nums, divs = self.floatTestData()
446 tf_result = math_ops.floormod(nums, divs).eval()
447 np_result = nums % divs
[all …]
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dmap_defun_op_test.py50 nums = [[1, 2], [3, 4], [5, 6]]
51 elems = constant_op.constant(nums, dtype=dtypes.int32, name="data")
64 nums = [[1, 2], [3, 4], [5, 6]]
65 elems = constant_op.constant(nums, dtype=dtypes.int32, name="data")
76 nums = [1, 2, 3, 4, 5, 6]
77 elems = constant_op.constant(nums, dtype=dtypes.int32, name="data")
89 nums = [[1, 2], [3, 4], [5, 6]]
90 elems = constant_op.constant(nums, dtype=dtypes.int32, name="data")
101 nums = [[1, 2], [3, 4], [5, 6]]
102 elems = constant_op.constant(nums, dtype=dtypes.int32, name="data")
[all …]
/external/clang/test/Analysis/inlining/
Dstl.cpp8 void testVector(std::vector<int> &nums) { in testVector() argument
9 if (nums.begin()) return; in testVector()
10 if (nums.end()) return; in testVector()
12 clang_analyzer_eval(nums.size() == 0); in testVector()
/external/guava/guava/src/com/google/common/math/
DBigIntegerMath.java371 static BigInteger listProduct(List<BigInteger> nums) { in listProduct() argument
372 return listProduct(nums, 0, nums.size()); in listProduct()
375 static BigInteger listProduct(List<BigInteger> nums, int start, int end) { in listProduct() argument
380 return nums.get(start); in listProduct()
382 return nums.get(start).multiply(nums.get(start + 1)); in listProduct()
384 return nums.get(start).multiply(nums.get(start + 1)).multiply(nums.get(start + 2)); in listProduct()
388 return listProduct(nums, start, m).multiply(listProduct(nums, m, end)); in listProduct()
/external/lua/src/
Dltable.c219 static unsigned int computesizes (unsigned int nums[], unsigned int *pna) { in computesizes() argument
229 if (nums[i] > 0) { in computesizes()
230 a += nums[i]; in computesizes()
243 static int countint (const TValue *key, unsigned int *nums) { in countint() argument
246 nums[luaO_ceillog2(k)]++; /* count as such */ in countint()
259 static unsigned int numusearray (const Table *t, unsigned int *nums) { in numusearray() argument
278 nums[lg] += lc; in numusearray()
285 static int numusehash (const Table *t, unsigned int *nums, unsigned int *pna) { in numusehash() argument
292 ause += countint(gkey(n), nums); in numusehash()
398 unsigned int nums[MAXABITS + 1]; in rehash() local
[all …]
/external/llvm/test/DebugInfo/X86/
Ddbg-value-inlined-parameter.ll15 ; CHECK: DW_AT_abstract_origin {{.*}} "nums"
25 ; CHECK: DW_AT_name {{.*}} "nums"
39 ;CHECK: DW_AT_abstract_origin {{.*}} "nums"
46 define i32 @foo(%struct.S1* nocapture %sp, i32 %nums) nounwind optsize ssp !dbg !0 {
49 …tail call void @llvm.dbg.value(metadata i32 %nums, i64 0, metadata !18, metadata !DIExpression()),…
51 store i32 %nums, i32* %tmp2, align 4, !dbg !22
52 %call = tail call float* @bar(i32 %nums) nounwind optsize, !dbg !27
94 !17 = !DIDerivedType(tag: DW_TAG_member, name: "nums", line: 3, size: 32, align: 32, offset: 64, fi…
95 !18 = !DILocalVariable(name: "nums", line: 7, arg: 2, scope: !0, file: !1, type: !5)
/external/swiftshader/third_party/llvm-7.0/llvm/test/DebugInfo/X86/
Ddbg-value-inlined-parameter.ll15 ; CHECK: DW_AT_abstract_origin {{.*}} "nums"
25 ; CHECK: DW_AT_name {{.*}} "nums"
39 ;CHECK: DW_AT_abstract_origin {{.*}} "nums"
49 define i32 @foo(%struct.S1* nocapture %sp, i32 %nums) #0 !dbg !15 {
52 tail call void @llvm.dbg.value(metadata i32 %nums, metadata !21, metadata !22), !dbg !24
54 store i32 %nums, i32* %tmp2, align 4, !dbg !25
55 %call = tail call float* @bar(i32 %nums) #3, !dbg !27
102 !12 = !DIDerivedType(tag: DW_TAG_member, name: "nums", scope: !3, file: !3, line: 3, baseType: !13,…
111 !21 = !DILocalVariable(name: "nums", arg: 2, scope: !15, file: !3, line: 7, type: !13)
/external/fonttools/Lib/fontTools/ttLib/tables/
DF__e_a_t.py29 (fid, nums, _, offset, flags, lid) = struct.unpack(">LHHLHH",
33 (fid, nums, offset, flags, lid) = struct.unpack(">HHLHH",
36 allfeats.append((fid, nums, offset, flags, lid))
37 maxsetting = max(maxsetting, offset + nums)
45 (fid, nums, offset, flags, lid) = f
53 for i in range(offset, offset + nums):
/external/clang/test/Analysis/
Dcxx-crashes.cpp63 int nums[n]; in vla() local
64 nums[0] = 1; in vla()
65 clang_analyzer_eval(nums[0] == 1); // expected-warning{{TRUE}} in vla()
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DPredicatesTest.java487 Collection<Integer> nums = Arrays.asList(1, 5); in testIn_apply() local
488 Predicate<Integer> isOneOrFive = Predicates.in(nums); in testIn_apply()
497 Collection<Integer> nums = ImmutableSet.of(1, 5); in testIn_equality() local
503 .addEqualityGroup(Predicates.in(nums), Predicates.in(nums), in testIn_equality()
518 Collection<Integer> nums = new CollectionThatThrowsNPE<Integer>(); in testIn_handlesNullPointerException() local
519 Predicate<Integer> isFalse = Predicates.in(nums); in testIn_handlesNullPointerException()
531 Collection<Integer> nums = new CollectionThatThrowsCCE<Integer>(); in testIn_handlesClassCastException() local
532 nums.add(3); in testIn_handlesClassCastException()
533 Predicate<Integer> isThree = Predicates.in(nums); in testIn_handlesClassCastException()
542 Collection<Number> nums = ImmutableSet.of(); in testIn_compilesWithExplicitSupertype() local
[all …]
/external/fonttools/Snippets/
Dsubset-fpgm.py48 nums = sorted(funcs.keys()) variable
49 asm.extend(str(i) for i in nums)
50 for i in nums:
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
Ddbg-value-inlined-parameter.ll17 define i32 @foo(%struct.S1* nocapture %sp, i32 %nums) nounwind optsize ssp {
20 tail call void @llvm.dbg.value(metadata !{i32 %nums}, i64 0, metadata !18), !dbg !21
22 store i32 %nums, i32* %tmp2, align 4, !dbg !22, !tbaa !24
23 %call = tail call float* @bar(i32 %nums) nounwind optsize, !dbg !27
66 !17 = metadata !{i32 589837, metadata !1, metadata !"nums", metadata !1, i32 3, i64 32, i64 32, i64…
67 !18 = metadata !{i32 590081, metadata !0, metadata !"nums", metadata !1, i32 7, metadata !5, i32 0}…
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DListViewActivity.java74 ArrayList<Number> nums = new ArrayList<Number>(); in getView() local
76 nums.add(generator.nextFloat()); in getView()
87 … XYSeries series = new SimpleXYSeries(nums, SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, "S" + k); in getView()
/external/guava/guava-tests/test/com/google/common/base/
DPredicatesTest.java696 Collection<Integer> nums = Arrays.asList(1, 5); in testIn_apply() local
697 Predicate<Integer> isOneOrFive = Predicates.in(nums); in testIn_apply()
706 Collection<Integer> nums = ImmutableSet.of(1, 5); in testIn_equality() local
712 .addEqualityGroup(Predicates.in(nums), Predicates.in(nums), in testIn_equality()
732 Collection<Integer> nums = new CollectionThatThrowsNPE<Integer>(); in testIn_handlesNullPointerException() local
733 Predicate<Integer> isFalse = Predicates.in(nums); in testIn_handlesNullPointerException()
745 Collection<Integer> nums = new CollectionThatThrowsCCE<Integer>(); in testIn_handlesClassCastException() local
746 nums.add(3); in testIn_handlesClassCastException()
747 Predicate<Integer> isThree = Predicates.in(nums); in testIn_handlesClassCastException()
756 Collection<Number> nums = ImmutableSet.of(); in testIn_compilesWithExplicitSupertype() local
[all …]
/external/python/cpython3/Lib/ctypes/
D_aix.py65 nums = []
68 nums.insert(0, int(parts.pop()))
71 return nums or [maxsize]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/
Duwtables.ll3 ; RUN: -ppc-vsr-nums-as-vr < %s | FileCheck %s
6 ; RUN: -ppc-vsr-nums-as-vr < %s | FileCheck %s
9 ; RUN: -ppc-vsr-nums-as-vr < %s | FileCheck %s
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DBigNumberFormatTest.java303 Number num = null, nums[] = null; in expect() local
311 nums = (Number[]) numo; in expect()
324 if (nums != null) { in expect()
325 n = Math.max(n, nums.length); in expect()
332 nums == null ? num : nums[i], in expect()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DBigNumberFormatTest.java300 Number num = null, nums[] = null; in expect() local
308 nums = (Number[]) numo; in expect()
321 if (nums != null) { in expect()
322 n = Math.max(n, nums.length); in expect()
329 nums == null ? num : nums[i], in expect()
/external/python/cpython2/Lib/lib2to3/tests/data/
Dpy3_test_grammar.py751 nums = [1, 2, 3]
752 self.assertEqual({i:i+1 for i in nums}, {1: 2, 2: 3, 3: 4})
756 nums = [1, 2, 3, 4, 5]
761 self.assertEqual([3 * x for x in nums], [3, 6, 9, 12, 15])
762 self.assertEqual([x for x in nums if x > 2], [3, 4, 5])
763 self.assertEqual([(i, s) for i in nums for s in strs],
769 self.assertEqual([(i, s) for i in nums for s in [f for f in strs if "n" in f]],
779 self.assertEqual(test_in_func(nums), [False, False, False])

1234