Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 54 for uniform_quantize (0.32 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

              clEnumValN(OpSet::TF, "TF",
                         "Uses TF ops that mimic quantization behavior"),
              clEnumValN(OpSet::XLA, "XLA", "Uses TF XLA ops"),
              clEnumValN(OpSet::UNIFORM_QUANTIZED, "UNIFORM_QUANTIZED",
                         "Uses TF Uniform Quantized ops"))};
    };
    
    // Check if given indices in `val1` has same number of elements as given
    // indices in `val2`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.h

                                                RewritePatternSet *patterns);
    
    // Creates an instance of the ConvertTFQuantTypes pass, which will convert TF
    // qint types to int types and surround TF UniformQuantized ops with qint <->
    // int casts.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateConvertTFQuantTypesPass();
    
    // Creates an instance of the VerifyQuantLegalization pass, which verifies all
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 01:41:18 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.cc

          /*allow_mutable_tensors=*/true));
    
      // Generic MLIR optimization passes.
      pm.addPass(mlir::createCanonicalizerPass());
      pm.addPass(mlir::TF::CreateTFShapeInferencePass());
    
      // Legalizes TF UniformQuantized types into MHLO.
      pm.addNestedPass<func::FuncOp>(
          mlir::quant::stablehlo::CreateConvertTFQuantOpsToMHLOPass());
      pm.addPass(mlir::createCanonicalizerPass());
    
      // TF -> StableHLO legalization.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 04:34:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

              clEnumValN(OpSet::TF, "TF",
                         "Uses TF ops that mimic quantization behavior"),
              clEnumValN(OpSet::XLA, "XLA", "Uses TF XLA ops"),
              clEnumValN(OpSet::UNIFORM_QUANTIZED, "UNIFORM_QUANTIZED",
                         "Uses TF Uniform Quantized ops"))};
    };
    
    bool QuantizePass::shouldKeepUnusedQdqPattern() {
      return target_opset_ == OpSet::XLA &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc

      // Constructor used by the PassRegistration and enforce int8 quantization.
      // This is only used by test.
      explicit PrepareQuantizeDRQPass() : op_set_(OpSet::UNIFORM_QUANTIZED) {
        quant_specs_.inference_type = tensorflow::DT_QINT8;
      }
    
      // Constructor used by manually creating the pass.
      explicit PrepareQuantizeDRQPass(const QuantizationSpecs& quant_specs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.cc

      // Generic MLIR optimization passes.
      pm.addPass(mlir::createCanonicalizerPass());
      pm.addPass(mlir::TF::CreateTFShapeInferencePass(input_arg_shapes));
    
      // Legalizes TF UniformQuantized types into MHLO. Part of the official
      // TF/XLA bridge component.
      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::quant::stablehlo::CreateConvertTFQuantOpsToMHLOPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.proto

      // Uses TF ops that mimic quantization behavior. Used when the corresponding
      // integer op is not yet present.
      TF = 1;
      // Uses TF XLA ops
      XLA = 2;
      // Uses TF Uniform Quantized ops
      UNIFORM_QUANTIZED = 3;
      // Uses the StableHLO Quantizer. StableHLO Quantizer will be available as
      // an option in the TF Quantizer in StableHLO Quantizer v1.
      STABLEHLO = 4;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 06:31:19 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py

        quantization_options.enable_per_channel_quantization = False
    
      if quantization_options.enable_per_channel_quantization and not (
          (
              quantization_options.op_set == quant_opts_pb2.OpSet.UNIFORM_QUANTIZED
              or quantization_options.quantization_method.preset_method
              == _PresetMethod.METHOD_STATIC_RANGE_WEIGHT_ONLY_INT8
          )
          or (
              quantization_options.op_set
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

      }
      if (!v.getDefiningOp() || !llvm::isa<TF::CastOp>(v.getDefiningOp())) {
        return false;
      }
      return IsIntToQintCast(v.getDefiningOp());
    }
    
    bool IsTFUniformQuantizedOpLegal(Operation *op) {
      // UniformQuantized Ops are considered legal if its qint operands and
      // results are connected to TF CastOp.
      return op && llvm::all_of(op->getResults(), IsQintValueQintToIntCast) &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/mark_for_compilation_pass.cc

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top