Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for FuncOp (0.09 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

        return LogicalResult::success(success);
      }
    };
    
    class HandleFunc : public OpRewritePattern<func::FuncOp> {
     public:
      using OpRewritePattern::OpRewritePattern;
    
      LogicalResult matchAndRewrite(func::FuncOp f,
                                    PatternRewriter& rewriter) const override {
        // Adjust the function type to match the block args. So this e.g. transforms
        //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

        // some special cases.
        if (auto func = llvm::dyn_cast<func::FuncOp>(op)) {
          AddRegionSideEffectsForOp(func.getBody(), op);
        } else if (auto call = llvm::dyn_cast<CallOpInterface>(op)) {
          func::FuncOp func_op = dyn_cast<func::FuncOp>(
              call.resolveCallable(&symbol_table_collection_));
          if (func_op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        // will be the operations inside the function body rather than representing
        // them in the function signature.
        FunctionType func_type = rewriter.getFunctionType({}, {});
        func::FuncOp func = rewriter.create<func::FuncOp>(
            loc, kImportModelDefaultGraphFuncName, func_type);
        rewriter.setInsertionPointToStart(func.addEntryBlock());
        auto executor_graph =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

      RewritePatternSet patterns(ctx);
      func::FuncOp func = getOperation();
    
      patterns.add<AddCustomAggregationOp>(ctx, calib_opts_);
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        func.emitError() << "quant-insert-custom-aggregation-ops failed.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

            .count();
      }
    };
    
    // Populates input_output_alias field in the HLO Module proto.
    Status PopulateInputOutputAliasing(
        mlir::func::FuncOp main_fn,
        XlaCompiler::CompilationResult* compilation_result, bool use_tuple_args) {
      constexpr char kAliasingAttr[] = "tf.aliasing_output";
      llvm::SmallDenseMap<unsigned, unsigned> output_to_input_alias;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

    using mlir::OpOperand;
    using mlir::RankedTensorType;
    using mlir::StringAttr;
    using mlir::success;
    using mlir::Type;
    using mlir::Value;
    using mlir::ValueRange;
    using mlir::WalkResult;
    using mlir::func::FuncOp;
    using mlir::TF::ConstOp;
    using mlir::TF::FillOp;
    using mlir::TF::IdentityOp;
    using mlir::TF::XlaAllReduceOp;
    using mlir::tf_device::ClusterOp;
    using mlir::tf_device::LaunchOp;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/python/saved_model_to_tfl_flatbuffer.cc

    Status HandleInputOutputArraysWithModule(
        const toco::ModelFlags& model_flags,
        mlir::OwningOpRef<mlir::ModuleOp>* module) {
      mlir::func::FuncOp entry_function = nullptr;
      for (auto func : module->get().getOps<mlir::func::FuncOp>()) {
        if (auto tf_attrs =
                func->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function")) {
          // TODO(b/184697652): There could be multiple entry functions. Let's
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

      SymbolTable stablehlo_symbol_table(stablehlo_module);
    
      Builder builder(context);
      StringAttr main_func_name;
      for (auto func : stablehlo_module.getOps<func::FuncOp>()) {
        const bool is_main_func = func.getSymName() == kStablehloMainFunctionName;
        if (tf_symbol_table.lookup(func.getSymName())) {
          if (failed(stablehlo_symbol_table.renameToUnique(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

    namespace mlir {
    namespace quant {
    namespace {
    
    using ::tensorflow::quantization::OpSet;
    
    class PrepareLiftingPass
        : public PassWrapper<PrepareLiftingPass, OperationPass<func::FuncOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(PrepareLiftingPass)
    
      PrepareLiftingPass() = default;
    
      explicit PrepareLiftingPass(OpSet op_set) { op_set_ = op_set; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.h

    //   correct execution).
    class SideEffectAnalysisInfo {
     public:
      SideEffectAnalysisInfo() = default;
    
      // Constructs analysis info by analyzing the given function.
      SideEffectAnalysisInfo(func::FuncOp func_op,
                             const OpSideEffectCollector& op_side_effect_collector,
                             const TF::ResourceAliasAnalysis::Info& alias_analysis,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top