Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 90 for OperationPass (0.29 sec)

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

        }
      }
    }
    }  // namespace
    
    // Creates an instance of the TensorFlow dialect Quantize pass.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass() {
      QuantizationSpecs quant_specs;
      return std::make_unique<QuantizePass>(quant_specs, OpSet::TF);
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass(
        QuantizationSpecs quant_specs, OpSet target_opset) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

    }
    
    // Fallbacks ops that are not supported by TF Quantization to TFLite Flex ops.
    class FallbackToFlexOps
        : public PassWrapper<FallbackToFlexOps, OperationPass<func::FuncOp>> {
     public:
      FallbackToFlexOps() = default;
      explicit FallbackToFlexOps(const std::string &mode) { mode_ = mode; }
      FallbackToFlexOps(const FallbackToFlexOps &other) { mode_ = other.mode_; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/unfreeze_constants.cc

    //
    // The constants whose sizes are smaller than `size_threshold_in_bytes_` will
    // not be converted to variables.
    class UnfreezeConstantsPass
        : public PassWrapper<UnfreezeConstantsPass, OperationPass<ModuleOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(UnfreezeConstantsPass)
    
      explicit UnfreezeConstantsPass()
          : UnfreezeConstantsPass(kDefaultConstantSizeThresholdInBytes) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 16 15:04:53 UTC 2023
    - 14K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

    using ::tensorflow::quantization::UnitWiseQuantizationSpec;
    
    class LiftQuantizableSpotsAsFunctionsPass
        : public PassWrapper<LiftQuantizableSpotsAsFunctionsPass,
                             OperationPass<ModuleOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(
          LiftQuantizableSpotsAsFunctionsPass)
    
      LiftQuantizableSpotsAsFunctionsPass() : test_mode_(true) {
        initializeForTest();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

    // `tf.NoOp` will be merged into the main function's `FetchOp`.
    class MergeInitializerFunctionOpsToMainPass
        : public PassWrapper<MergeInitializerFunctionOpsToMainPass,
                             OperationPass<ModuleOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(
          MergeInitializerFunctionOpsToMainPass)
    
      explicit MergeInitializerFunctionOpsToMainPass() = default;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/passes/decompose.cc

      return builder.getI32IntegerAttr(quantized);
    }
    
    // Decompose the TF ops with the registered composition library.
    class DecomposeTFOpsPass
        : public PassWrapper<DecomposeTFOpsPass, OperationPass<func::FuncOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(DecomposeTFOpsPass)
    
      explicit DecomposeTFOpsPass(std::optional<ModuleOp> external_tfr_module)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc

    // operand is a target for constant duplication.
    class DuplicateShapeDeterminingConstantsPass
        : public PassWrapper<DuplicateShapeDeterminingConstantsPass,
                             OperationPass<func::FuncOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(
          DuplicateShapeDeterminingConstantsPass)
    
      StringRef getArgument() const final {
        return "quant-duplicate-shape-determining-constants";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

    // suffix like `@main_0` to avoid conflict with the newly created main function.
    class InsertMainFunctionPass
        : public PassWrapper<InsertMainFunctionPass, OperationPass<ModuleOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(InsertMainFunctionPass)
    
      explicit InsertMainFunctionPass() = default;
    
      StringRef getArgument() const override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreatePromoteResourcesToArgsPass(
        llvm::ArrayRef<std::string> functions) {
      return std::make_unique<PromoteResourcesToArgsPass>(functions);
    }
    
    std::unique_ptr<OperationPass<ModuleOp>> CreatePromoteVarHandlesToArgsPass() {
      return std::make_unique<PromoteVarHandlesToArgsPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc

    // making the quantization rule for some operations in the quantization-aware
    // training quantization simpler.
    class PrepareQuantizePass
        : public PassWrapper<PrepareQuantizePass, OperationPass<func::FuncOp>> {
      void getDependentDialects(DialectRegistry& registry) const override {
        registry.insert<TF::TensorFlowDialect, ::mlir::quant::QuantizationDialect,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top