Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 293 for runOnOperation (0.17 sec)

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

      void getDependentDialects(DialectRegistry &registry) const override {
        registry.insert<TFL::TensorFlowLiteDialect, TF::TensorFlowDialect>();
      }
      void runOnOperation() override;
    };
    
    LogicalResult FindImplicityProducers(
        const std::vector<uint64_t> &explicitly_consumed_ids,
        std::vector<bool> &is_consumed_id,
        const std::vector<std::vector<uint64_t>> &dependency_graph) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

      }
    
      void getDependentDialects(DialectRegistry &registry) const override {
        registry.insert<TF::TensorFlowDialect>();
      }
    
      void runOnOperation() override;
    
     private:
      enum TestCase {
        TEST_CASE_MIN_MAX,
        TEST_CASE_AVERAGE_MIN_MAX,
        TEST_CASE_HISTOGRAM_PERCENTILE,
        TEST_CASE_HISTOGRAM_MSE_BRUTEFORCE,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

    class PrepareTpuComputationForTfExportPass
        : public impl::PrepareTpuComputationForTfExportPassBase<
              PrepareTpuComputationForTfExportPass> {
      void runOnOperation() override;
    };
    
    class RewriteXlaHostComputeMlir
        : public OpRewritePattern<TF::_XlaHostComputeMlirOp> {
     public:
      using OpRewritePattern<TF::_XlaHostComputeMlirOp>::OpRewritePattern;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/sink_constant.cc

     public:
      explicit ClusterConstantSinkingPass(
          llvm::function_ref<bool(tf_device::ClusterOp, ElementsAttr)> filter)
          : filter_(filter) {}
    
      void runOnOperation() override {
        getOperation().walk([filter = filter_](tf_device::ClusterOp cluster) {
          LLVM_DEBUG(llvm::dbgs() << "Visit " << *cluster.getOperation() << "\n");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/guarantee_all_funcs_one_use.cc

    // of callees which is difficult if callees have multiple uses.
    class GuaranteeAllFuncsOneUse
        : public impl::GuaranteeAllFuncsOneUsePassBase<GuaranteeAllFuncsOneUse> {
     public:
      void runOnOperation() override {
        if (failed(Run())) {
          signalPassFailure();
        }
      }
    
      LogicalResult Run() {
        auto module = getOperation();
    
        // Overall strategy:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    struct FunctionalControlFlowToCFG
        : public impl::FunctionalControlFlowToCFGPassBase<
              FunctionalControlFlowToCFG> {
      void runOnOperation() override;
    };
    
    // Lowers a general tensor argument that is used as a condition to a functional
    // control flow op into an i1 value.
    static Value LowerCondition(Location loc, Value value, OpBuilder* builder) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 13 11:42:59 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

        return success();
      }
    };
    
    struct ConvertTFQuantTypes
        : public impl::ConvertTFQuantTypesBase<ConvertTFQuantTypes> {
      void runOnOperation() override;
    };
    
    void ConvertTFQuantTypes::runOnOperation() {
      TFQuantTypeConverter converter;
      RewritePatternSet patterns(&getContext());
      patterns.add<TFQuantTypePattern>(&getContext(), converter);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

    // arguments and adding "device" attribute to TF ops.
    struct ResourceDeviceInference
        : public impl::ResourceDeviceInferencePassBase<ResourceDeviceInference> {
      void runOnOperation() override;
    };
    
    // A class that records each resource's device assignment in a function.
    class PerFunctionResult {
     public:
      explicit PerFunctionResult(
          func::FuncOp func_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/unfreeze_constants.cc

      }
    
      StringRef getArgument() const override { return "quant-unfreeze-constants"; }
    
      StringRef getDescription() const override {
        return "Unfreeze large constants.";
      }
    
      void runOnOperation() override;
    
     private:
      Option<int64_t> CreateSizeThresholdInBytesOption(const int64_t init_value) {
        return Option<int64_t>(
            *this, "size_threshold_in_bytes", llvm::cl::init(init_value),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 16 15:04:53 UTC 2023
    - 14K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

     public:
      FallbackToFlexOps() = default;
      explicit FallbackToFlexOps(const std::string &mode) { mode_ = mode; }
      FallbackToFlexOps(const FallbackToFlexOps &other) { mode_ = other.mode_; }
    
      void runOnOperation() override;
    
      StringRef getArgument() const final { return "quant-raise-flex-fallback"; }
    
      StringRef getDescription() const final {
        return "Fallback TF-Quantization-unsupported ops to TFLite Flex ops.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top