Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 293 for runOnOperation (0.19 sec)

  1. 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)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc

    struct LegalizeWhilePass
        : public impl::LegalizeWhilePassBase<LegalizeWhilePass> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LegalizeWhilePass)
      void RunOnFunction(func::FuncOp func);
    
      void runOnOperation() override {
        for (auto op : getOperation().getOps<func::FuncOp>()) RunOnFunction(op);
      }
    };
    
    }  // namespace
    
    // Inserts call to the given function into the 'region'.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

    class WhileOutlinePass : public impl::WhileOutlinePassBase<WhileOutlinePass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(WhileOutlinePass)
      explicit WhileOutlinePass() {}
    
     private:
      void runOnOperation() override;
    
      // Outlines the regions of the WhileOp's cond and body and insert function
      // calls instead,
      void OutlineWhile(WhileOp while_op);
    
      // Get unique name by using the loc to name mapping.
    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/lite/transforms/unfold_large_splat_constant.cc

    class UnfoldLargeSplatConstantPass
        : public impl::UnfoldLargeSplatConstantPassBase<
              UnfoldLargeSplatConstantPass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(UnfoldLargeSplatConstantPass)
    
      void runOnOperation() override {
        auto module = getOperation();
    
        mlir::OpBuilder op_builder(&module.getBodyRegion());
        module.walk([&](mlir::arith::ConstantOp const_op) {
          MaybeUnfoldLargeSplatConstant(&op_builder, const_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

      }
    
      void getDependentDialects(DialectRegistry& registry) const override {
        registry.insert<TF::TensorFlowDialect, arith::ArithDialect>();
      }
    
      void runOnOperation() override;
    };
    
    // Generate an einsum equation from the given DotDimensionNumber.
    std::string CreateEinsumEquation(
        const xla::DotDimensionNumbers& dot_dimension_numbers, const int lhs_rank,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/transforms/get_alternative_subgraph.cc

      AlternativeSubgraphPass(const AlternativeSubgraphPass&) {}
      explicit AlternativeSubgraphPass(llvm::ArrayRef<std::string> device_specs) {
        device_specs_flag_ = device_specs;
      }
    
     private:
      void runOnOperation() override;
    
      // Given a func and targeted devices, we will try to clonse the func &
      // transform/optimize for those devices.
      // This will only happen if the whole subgraph can be supported by the target
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

      }
      llvm::StringRef getDescription() const final {
        return "This pass will merge those have target-annotated TFL IRs together "
               "& raise them as a function.";
      }
      void runOnOperation() override;
    
      void RaiseTargetSubgraphsForBlock(
          Block& block, OpBuilder& builder, ModuleOp module, bool skip_cpu,
          int& func_count, const TF::SideEffectAnalysis::Info& side_effect_info);
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_custom_call_to_composite.cc

              LegalizeStablehloCustomCallToCompositePass> {
      using LegalizeStablehloCustomCallToCompositePassBase::
          LegalizeStablehloCustomCallToCompositePassBase;
    
      void runOnOperation() override {
        MLIRContext *context = &getContext();
    
        ConversionTarget target(*context);
        target.addLegalDialect<mlir::stablehlo::StablehloDialect>();
        target.addLegalDialect<mlir::func::FuncDialect>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc

        registry.insert<TF::TensorFlowDialect>();
        registry.insert<quant::QuantizationDialect>();
        registry.insert<quantfork::QuantizationForkDialect>();
      }
    
     private:
      void runOnOperation() override;
    
      Option<DebuggerType> debugger_type_{
          *this, "debugger_type",
          llvm::cl::init(DebuggerConfig::DEBUGGER_TYPE_UNSPECIFIED),
          llvm::cl::values(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc

    class PushTransposeThroughEwisePass
        : public impl::PushTransposeThroughEwisePassBase<
              PushTransposeThroughEwisePass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(PushTransposeThroughEwisePass)
      void runOnOperation() override;
    };
    
    // Compute the permutation that would take `arr` to the identity.
    llvm::SmallVector<int32_t> InvertPermutation(llvm::SmallVector<int32_t> arr) {
      llvm::SmallVector<int32_t> inverse_arr(arr.size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top