- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for IsInteger (0.19 sec)
-
tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc
elemType.isF64()) return true; // I1, I4, I8, I16, I32, I64 types are allowed. if (elemType.isInteger(1) || elemType.isInteger(4) || elemType.isInteger(8) || elemType.isInteger(16) || elemType.isInteger(32) || elemType.isInteger(64)) return true; // Complex<F<32>> is allowed. if (mlir::isa<ComplexType>(elemType) &&
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/quantity.go
// +Inf/-Inf will be returned. // // <Quantity>.isInteger() <bool> // <Quantity>.asInteger() <int> // <Quantity>.asApproximateFloat() <float> // // Examples: // // quantity("50000000G").isInteger() // returns true // quantity("50k").isInteger() // returns true // quantity("9999999999999999999999999999999999999G").asInteger() // error: cannot convert value to integer
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 11.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/PredicatesTest.java
*/ @GwtIncompatible // Predicates.instanceOf public void testIsInstanceOf_apply() { Predicate<@Nullable Object> isInteger = Predicates.instanceOf(Integer.class); assertTrue(isInteger.apply(1)); assertFalse(isInteger.apply(2.0f)); assertFalse(isInteger.apply("")); assertFalse(isInteger.apply(null)); } @GwtIncompatible // Predicates.instanceOf public void testIsInstanceOf_subclass() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 32.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
*/ @GwtIncompatible // Predicates.instanceOf public void testIsInstanceOf_apply() { Predicate<@Nullable Object> isInteger = Predicates.instanceOf(Integer.class); assertTrue(isInteger.apply(1)); assertFalse(isInteger.apply(2.0f)); assertFalse(isInteger.apply("")); assertFalse(isInteger.apply(null)); } @GwtIncompatible // Predicates.instanceOf public void testIsInstanceOf_subclass() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 32.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/convert.go
fromType := n.Type() // If it's a pointer, it is its own representation. if types.IsDirectIface(fromType) { return n } isInteger := fromType.IsInteger() isBool := fromType.IsBoolean() if sc := fromType.SoleComponent(); sc != nil { isInteger = sc.IsInteger() isBool = sc.IsBoolean() } // Try a bunch of cases to avoid an allocation. var value ir.Node switch { case fromType.Size() == 0:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 17:28:22 UTC 2023 - 18.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc
// TODO(b/288302706) add support for all types handled in the // `lower_static_tensor_list` pass. return element_type->isF32() || element_type->isInteger(64) || element_type->isInteger(32) || element_type->isInteger(1); } // Only legalize TensorFlow TensorList ops if all TensorList ops are supported // natively. class LegalizeTensorListPass
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 10.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/tftext_utils.cc
if (!RankEquals(offset_type, 1) || !offset_type.getElementType().isInteger(64)) { return func.emitError() << "2nd output should be int64 tensor"; } } if (func.getNumResults() > 2) { auto offset_type = GetResultType(func, 2); if (!RankEquals(offset_type, 1) || !offset_type.getElementType().isInteger(64)) { return func.emitError() << "3rd output should be int64 tensor"; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/compare.go
remains := t.NumElem() * t.Elem().Size() combine64bit := unalignedLoad && types.RegSize == 8 && t.Elem().Size() <= 4 && t.Elem().IsInteger() combine32bit := unalignedLoad && t.Elem().Size() <= 2 && t.Elem().IsInteger() combine16bit := unalignedLoad && t.Elem().Size() == 1 && t.Elem().IsInteger() for i := int64(0); remains > 0; { var convType *types.Type switch { case remains >= 8 && combine64bit:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:55:14 UTC 2023 - 16.2K bytes - Viewed (0) -
src/go/types/predicates.go
// If t is a type parameter the result is false; i.e., // these predicates don't look inside a type parameter. func isBoolean(t Type) bool { return isBasic(t, IsBoolean) } func isInteger(t Type) bool { return isBasic(t, IsInteger) } func isUnsigned(t Type) bool { return isBasic(t, IsUnsigned) } func isFloat(t Type) bool { return isBasic(t, IsFloat) } func isComplex(t Type) bool { return isBasic(t, IsComplex) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/predicates.go
// If t is a type parameter the result is false; i.e., // these predicates don't look inside a type parameter. func isBoolean(t Type) bool { return isBasic(t, IsBoolean) } func isInteger(t Type) bool { return isBasic(t, IsInteger) } func isUnsigned(t Type) bool { return isBasic(t, IsUnsigned) } func isFloat(t Type) bool { return isBasic(t, IsFloat) } func isComplex(t Type) bool { return isBasic(t, IsComplex) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.5K bytes - Viewed (0)