Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for IntegerType (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils.cc

          .Case<TF::Qint8Type>(
              [&type](Type) { return IntegerType::get(type.getContext(), 8); })
          .Case<TF::Qint16Type>(
              [&type](Type) { return IntegerType::get(type.getContext(), 16); })
          .Case<TF::Qint32Type>(
              [&type](Type) { return IntegerType::get(type.getContext(), 32); })
          .Case<TF::Quint8Type>([&type](Type) {
            return IntegerType::get(type.getContext(), 8,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

          {1, 2}, DT_UINT8,
          mlir::IntegerType::get(
              &context, 8, mlir::IntegerType::SignednessSemantics::Unsigned)));
      ASSERT_NO_FATAL_FAILURE(VerifyConversion<uint16>(
          {1, 2}, DT_UINT16,
          mlir::IntegerType::get(
              &context, 16, mlir::IntegerType::SignednessSemantics::Unsigned)));
      ASSERT_NO_FATAL_FAILURE(VerifyConversion<uint32>(
          {1, 2}, DT_UINT32,
          mlir::IntegerType::get(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/utils/bfloat16_type_test.cc

                BFloat16Type::get(context.get()));
    
      EXPECT_EQ(ToBfloat16Type(IntegerType::get(context.get(), 8)),
                IntegerType::get(context.get(), 8));
      EXPECT_EQ(ToBfloat16Type(IntegerType::get(context.get(), 16)),
                IntegerType::get(context.get(), 16));
      EXPECT_EQ(ToBfloat16Type(IntegerType::get(context.get(), 32)),
                IntegerType::get(context.get(), 32));
    }
    
    TEST(ToBfloat16TypeTest, tensors) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 19 23:51:52 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils_test.cc

      EXPECT_TRUE(llvm::isa<IntegerType>(type));
      EXPECT_EQ(mlir::dyn_cast<IntegerType>(type).getWidth(), 8);
      EXPECT_FALSE(mlir::dyn_cast<IntegerType>(type).isSigned());
      EXPECT_FALSE(mlir::dyn_cast<IntegerType>(type).isUnsigned());
    
      type = GetIntTypeFromTFQint(TF::Qint16Type::get(context.get()));
      EXPECT_TRUE(llvm::isa<IntegerType>(type));
      EXPECT_EQ(mlir::dyn_cast<IntegerType>(type).getWidth(), 16);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.cc

                                                         const bool narrow_range) {
      return UniformQuantizedType::getChecked(
          loc, /*flags=*/QuantizationFlags::Signed,
          /*storageType=*/IntegerType::get(&context, /*width=*/8),
          /*expressedType=*/FloatType::getF32(&context), scale, zero_point,
          /*storageTypeMin=*/llvm::minIntN(8) + (narrow_range ? 1 : 0),
          /*storageTypeMax=*/llvm::maxIntN(8));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. src/internal/types/testdata/fixedbugs/issue51658.go

    	float32 | float64
    } // ERRORx "expected declaration|non-declaration statement"
    
    type IntegerType interface {
    	int8 | int16 | int32 | int64 | int |
    		uint8 | uint16 | uint32 | uint64 | uint
    }
    
    type ComplexType interface {
    	complex64 | complex128
    }
    
    type Number interface {
    	FloatType | IntegerType | ComplexType
    }
    
    func GetDefaultNumber[T Number](value, defaultValue T) T {
    	if value == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1016 bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    				"a": objectType(map[string]schema.Structural{
    					"b": integerType,
    					"c": integerType,
    					"d": withNullable(true, integerType),
    				}),
    				"a1": objectType(map[string]schema.Structural{
    					"b1": objectType(map[string]schema.Structural{
    						"c1": integerType,
    					}),
    					"d2": objectType(map[string]schema.Structural{
    						"e2": integerType,
    					}),
    				}),
    			}),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				"true": integerType, "false": integerType, "null": integerType, "in": integerType, "as": integerType,
    				"break": integerType, "const": integerType, "continue": integerType, "else": integerType,
    				"for": integerType, "function": integerType, "if": integerType, "import": integerType,
    				"let": integerType, "loop": integerType, "package": integerType, "namespace": integerType,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

      bool is_signed = true;
      if (tensor.type == tflite::TensorType_UINT8) {
        is_signed = false;
        storage_type = mlir::IntegerType::get(builder.getContext(), 8);
      }
    
      if (!storage_type) {
        const mlir::Type raw_elem_type = ConvertElementType(tensor.type, builder);
        if (!mlir::isa<mlir::IntegerType>(raw_elem_type)) {
          return absl::InvalidArgumentError(
              "Quantized tensors must be stored as integers");
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/ir/FakeQuantSupport.cc

      // Hard-coded type mapping from TFLite.
      if (numBits <= 4) {
        storageType = IntegerType::get(ctx, 4);
        if (isSigned) {
          qmin = -8;
          qmax = 7;
        } else {
          qmin = 0;
          qmax = 15;
        }
      } else if (numBits <= 8) {
        storageType = IntegerType::get(ctx, 8);
        if (isSigned) {
          qmin = -128;
          qmax = 127;
        } else {
          qmin = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 11:52:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top