Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 293 for runOnOperation (0.2 sec)

  1. tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc

        this->default_min_ = default_min;
        this->default_max_ = default_max;
        this->is_signed_ = is_signed;
      }
    
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(DefaultQuantParamsPass)
      void runOnOperation() override;
    
     private:
      // Whether the value is used as a bias input of another op. Here we assume
      // bias is used immediately by the user. This assumption is always correct
      // after constant folding.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    struct TPUDevicePropagation
        : public impl::TPUDevicePropagationPassBase<TPUDevicePropagation> {
      void runOnOperation() override;
    };
    
    void TPUDevicePropagation::runOnOperation() {
      func::FuncOp func = getOperation();
      if (!IsSupportedGraph(func)) return;
    
      llvm::DenseMap<Value, llvm::StringRef> value_to_device;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc

        return "quant-preprocess-op";
      }
      StringRef getDescription() const final {
        // This is a brief description of the pass.
        return "Preprocess TF op prior to quantization";
      }
    
      void runOnOperation() override;
    
     private:
      Option<OpSet> op_set_{
          *this, "target-opset", llvm::cl::init(OpSet::UNIFORM_QUANTIZED),
          llvm::cl::desc("Choose target opset."),
          llvm::cl::values(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc

        if (tf2xla_fallback_device_type.has_value()) {
          device_type_ = tf2xla_fallback_device_type.value().str();
        }
      }
      /// Performs the lowering to XLA dialect.
      void runOnOperation() override;
    };
    
    #define GEN_PASS_DEF_LEGALIZETFMODULEPASS
    #include "tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_passes.h.inc"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/unfold_splat_constant_pass.cc

    // pass and folders are not applied by default.
    class UnfoldSplatConstantPass
        : public impl::UnfoldSplatConstantPassBase<UnfoldSplatConstantPass> {
     public:
      void runOnOperation() override {
        auto module = getOperation();
    
        mlir::OpBuilder op_builder(&module.getBodyRegion());
        // Cannot use the pattern rewriter because the driver applies folders by
        // default.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc

    // the end.
    struct UnrollBatchMatMulPass
        : public impl::UnrollBatchMatMulPassBase<UnrollBatchMatMulPass> {
      void runOnOperation() override;
    };
    
    void UnrollBatchMatMulPass::runOnOperation() {
      RewritePatternSet patterns(&getContext());
      auto func = getOperation();
      PopulateUnrollTfBatchMatMul(&getContext(), patterns);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc

    }  // namespace
    
    class DeferActivationTransposePass
        : public impl::DeferActivationTransposePassBase<
              DeferActivationTransposePass> {
     private:
      void runOnOperation() override;
    };
    
    void DeferActivationTransposePass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      MLIRContext& ctx = getContext();
    
      RewritePatternSet patterns(&ctx);
      patterns.add<DeferActivationTransposeForAddOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc

      // processing the function for dynamic range quantization. Therefore, this
      // method preprocess the function to remove all stats ops.
      void removeAllStatsOp(func::FuncOp func);
    
      void runOnOperation() override;
    
     private:
      QuantizationSpecs quant_specs_;
      OpSet op_set_;
    
      Option<bool> enable_per_channel_quantization_{
          *this, "enable-per-channel-quantization", llvm::cl::init(false),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      }
      return success();
    }
    
    }  // namespace
    
    struct LegalizeStablehloToVhloPass
        : public impl::LegalizeStablehloToVhloPassBase<
              LegalizeStablehloToVhloPass> {
      void runOnOperation() override {
        ModuleOp module = getOperation();
        std::string target_version = tflite_supported_stablehlo_version;
        VhloToStablehloTypeConverter to_builtin_converter;
    
        // StableHLO --> VHLO (allow funcs)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/quantize.cc

        enable_weight_only_quantization_ = quant_specs.weight_only_quantization;
      }
    
      void runOnOperation() override;
    
     private:
      quant::QuantizationSpecs quant_specs;
    };
    
    #include "tensorflow/compiler/mlir/lite/transforms/generated_quantize.inc"
    
    void QuantizePass::runOnOperation() {
      RewritePatternSet patterns(&getContext());
      auto func = getOperation();
      auto* ctx = func.getContext();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top