Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CreateI8F32UniformQuantizedPerAxisType (0.4 sec)

  1. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc

      }
    
      MLIRContext ctx_;
    };
    
    TEST_F(CreateI8F32UniformQuantizedPerAxisTypeTest, I8StorageTypeSucceeds) {
      const UniformQuantizedPerAxisType quantized_type =
          CreateI8F32UniformQuantizedPerAxisType(
              UnknownLoc::get(&ctx_), ctx_,
              /*scales=*/SmallVector<double, 2>{1.0, 1.0},
              /*zero_points=*/SmallVector<int64_t, 2>{0, 0},
              /*quantization_dimension=*/0);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.h

    // zero point values can be non-zero values.
    // If `narrow_range` is set true (ex: for weights), a restricted range of
    // integers will be used for symmetric mapping, i.e. [-127, 127].
    UniformQuantizedPerAxisType CreateI8F32UniformQuantizedPerAxisType(
        Location loc, MLIRContext& context, ArrayRef<double> scales,
        ArrayRef<int64_t> zero_points, int quantization_dimension,
        bool narrow_range = false);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.cc

          /*expressedType=*/FloatType::getF32(&context), scale, zero_point,
          /*storageTypeMin=*/llvm::minIntN(32),
          /*storageTypeMax=*/llvm::maxIntN(32));
    }
    
    UniformQuantizedPerAxisType CreateI8F32UniformQuantizedPerAxisType(
        const Location loc, MLIRContext& context, const ArrayRef<double> scales,
        const ArrayRef<int64_t> zero_points, const int quantization_dimension,
        const bool narrow_range) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

    #define DEBUG_TYPE "stablehlo-compose-uniform-quantized-type"
    
    namespace mlir {
    namespace odml {
    namespace {
    
    using ::mlir::quant::CreateI8F32UniformQuantizedPerAxisType;
    using ::mlir::quant::CreateI8F32UniformQuantizedType;
    using ::mlir::quant::TryCast;
    using ::mlir::quant::UniformQuantizedPerAxisType;
    using ::mlir::quant::UniformQuantizedType;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

    using ::mlir::quant::CastI64ArrayToI32;
    using ::mlir::quant::CastI64ToI32;
    using ::mlir::quant::CreateI32F32UniformQuantizedPerAxisType;
    using ::mlir::quant::CreateI32F32UniformQuantizedType;
    using ::mlir::quant::CreateI8F32UniformQuantizedPerAxisType;
    using ::mlir::quant::CreateI8F32UniformQuantizedType;
    using ::mlir::quant::FindOperandOfType;
    using ::mlir::quant::FindUserOfType;
    using ::mlir::quant::GetElementType;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

              "new quantization dimension not found in perm");
        }
    
        // Insert a QDQ pair with the new quantized dimension after TransposeOp
        auto new_qtype = quant::CreateI8F32UniformQuantizedPerAxisType(
            transpose_op.getLoc(), *rewriter.getContext(), aqtype.getScales(),
            aqtype.getZeroPoints(), new_out_quant_dim, /*narrow_range=*/true);
        auto new_tensor_type = RankedTensorType::getChecked(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
Back to top