- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for res_compare (0.17 sec)
-
tensorflow/compiler/mlir/tfr/python/tfr_gen.py
elif value in (TFRTypes.TENSOR_LIST, TFRTypes.TENSOR): # TODO(mdan): This is not entirely correct for multi-element slices. return {TFRTypes.TENSOR} else: return {value} def res_compare(self, ns, types_ns, node, left, right): # TODO(fengliuai): make sure left and right are compatible return {TFRTypes.I1} def res_unop(self, ns, types_ns, node, opnd): return opnd
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 27 15:27:03 UTC 2022 - 55.8K bytes - Viewed (0) -
src/strings/compare_test.go
{"ab", "x", -1}, {"x", "a", 1}, {"b", "x", -1}, // test runtime·memeq's chunked implementation {"abcdefgh", "abcdefgh", 0}, {"abcdefghi", "abcdefghi", 0}, {"abcdefghi", "abcdefghj", -1}, } func TestCompare(t *testing.T) { for _, tt := range compareTests { cmp := Compare(tt.a, tt.b) if cmp != tt.i { t.Errorf(`Compare(%q, %q) = %v`, tt.a, tt.b, cmp) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 01:33:55 UTC 2022 - 2.8K bytes - Viewed (0) -
src/cmp/cmp_test.go
case uintptr: b = cmp.Less(test.x.(uintptr), test.y.(uintptr)) } if b != (test.compare < 0) { t.Errorf("Less(%v, %v) == %t, want %t", test.x, test.y, b, test.compare < 0) } } } func TestCompare(t *testing.T) { for _, test := range tests { var c int switch test.x.(type) { case int: c = cmp.Compare(test.x.(int), test.y.(int)) case string: c = cmp.Compare(test.x.(string), test.y.(string))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 23:39:07 UTC 2024 - 3.9K bytes - Viewed (0) -
src/internal/gover/gover_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gover import ( "reflect" "testing" ) func TestCompare(t *testing.T) { test2(t, compareTests, "Compare", Compare) } var compareTests = []testCase2[string, string, int]{ {"", "", 0}, {"x", "x", 0}, {"", "x", 0}, {"1", "1.1", -1}, {"1.5", "1.6", -1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 23:20:32 UTC 2023 - 3.4K bytes - Viewed (0) -
src/cmd/go/internal/gover/gover_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gover import ( "reflect" "testing" ) func TestCompare(t *testing.T) { test2(t, compareTests, "Compare", Compare) } var compareTests = []testCase2[string, string, int]{ {"", "", 0}, {"x", "x", 0}, {"", "x", 0}, {"1", "1.1", -1}, {"1.5", "1.6", -1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 23:20:32 UTC 2023 - 3.3K bytes - Viewed (0) -
src/go/version/version_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package version import ( "reflect" "testing" ) func TestCompare(t *testing.T) { test2(t, compareTests, "Compare", Compare) } var compareTests = []testCase2[string, string, int]{ {"", "", 0}, {"x", "x", 0}, {"", "x", 0}, {"1", "1.1", 0}, {"go1", "go1.1", -1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 19:56:48 UTC 2024 - 2.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/SignedBytesTest.java
assertWithMessage(value + " not found in exception text: " + ex.getMessage()) .that(ex.getMessage().contains(String.valueOf(value))) .isTrue(); } } public void testCompare() { for (byte x : VALUES) { for (byte y : VALUES) { // Only compare the sign of the result of compareTo(). int expected = Byte.valueOf(x).compareTo(y);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 7K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/SignedBytesTest.java
assertWithMessage(value + " not found in exception text: " + ex.getMessage()) .that(ex.getMessage().contains(String.valueOf(value))) .isTrue(); } } public void testCompare() { for (byte x : VALUES) { for (byte y : VALUES) { // Only compare the sign of the result of compareTo(). int expected = Byte.valueOf(x).compareTo(y);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 7K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java
try { UnsignedInteger.fromIntBits(a).mod(UnsignedInteger.ZERO); fail("Expected ArithmeticException"); } catch (ArithmeticException expected) { } } } public void testCompare() { for (int a : TEST_INTS) { for (int b : TEST_INTS) { UnsignedInteger aUnsigned = UnsignedInteger.fromIntBits(a); UnsignedInteger bUnsigned = UnsignedInteger.fromIntBits(b);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jun 01 09:32:35 UTC 2023 - 9.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
try { UnsignedLong.fromLongBits(a).mod(UnsignedLong.ZERO); fail("Expected ArithmeticException"); } catch (ArithmeticException expected) { } } } public void testCompare() { for (long a : TEST_LONGS) { for (long b : TEST_LONGS) { UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a); UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 06 16:10:08 UTC 2024 - 10.5K bytes - Viewed (0)