Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 445 for FuncOp (0.12 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

        }
    
        return absl::OkStatus();
      }
    
      mlir::func::FuncOp GetMainFunc() {
        func::FuncOp main_func = module_->lookupSymbol<mlir::func::FuncOp>("main");
        EXPECT_TRUE(main_func);
    
        return main_func;
      }
    
      mlir::Operation& GetFirstOpFromMain() {
        mlir::func::FuncOp main_func = GetMainFunc();
        return main_func.getBody().front().front();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

        // and use it for `shape_inference_graph` attribute on XlaHostCompute.
        func::FuncOp cloned_func;
        SymbolTable manager(op->getParentOfType<ModuleOp>());
        StringRef host_module = op.getHostMlirModule();
        if (!host_module.empty()) {
          mlir::OwningOpRef<mlir::ModuleOp> module_for_func;
    
          func::FuncOp func = op.GetHostFunc(&module_for_func);
    
          OpBuilder::InsertionGuard guard(rewriter);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc

      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'.
    void CreateRegionWithCall(func::FuncOp func, Region& region, Location loc) {
      OpBuilder builder(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)
  4. tensorflow/compiler/mlir/tensorflow/analysis/tf_dataflow.h

            }
          }
        } else if (auto while_op = dyn_cast<TF::WhileOp>(op)) {
          func::FuncOp cond = SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(
              while_op, while_op.getCondAttr());
          func::FuncOp body = SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(
              while_op, while_op.getBodyAttr());
          for (auto &arg : while_op->getOpOperands()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/xla_validate_inputs.cc

      void runOnOperation() override;
    };
    
    LogicalResult HasNoNestedEntryFunctions(
        const llvm::SmallVector<func::FuncOp> &entry_funcs, SymbolTable &symtab) {
      auto calls_entry_functions = [&](SymbolUserOpInterface op) {
        llvm::SmallVector<func::FuncOp> callees;
        if (GetCallees(op, symtab, callees).failed()) {
          return false;
        }
        for (auto &callee : callees) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 19:29:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc

        for (Operation* op : filtered_ops) {
          auto func = cast<func::FuncOp>(op);
          func.emitRemark() << llvm::formatv("filtered by tac filter ({0})", count);
        }
        return;
      }
    
      DenseMap<func::FuncOp, SmallVector<Operation*>> func_to_filtered_ops_map;
      for (Operation* op : filtered_ops) {
        auto func = op->getParentOfType<func::FuncOp>();
        func_to_filtered_ops_map[func].push_back(op);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/ir/Passes.h

    #include "mlir/Pass/Pass.h"  // from @llvm-project
    
    namespace mlir {
    namespace func {
    class FuncOp;
    }  // namespace func
    
    namespace quantfork {
    
    /// Creates a pass that converts quantization simulation operations (i.e.
    /// FakeQuant and those like it) to casts into/out of supported QuantizedTypes.
    std::unique_ptr<OperationPass<func::FuncOp>> createConvertSimulatedQuantPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 29 18:55:28 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/transforms/compute_cost.cc

    //
    // The compute cost is simply an add-up of the costs of all the operations
    // within the FuncOp. (Excluding const ops since they're just "data".)
    // We will ignore quant/dequant/requant costs within the Func Op as well,
    // intuition:
    //
    // The assumpution is that quant/dequant/requant will only happen at the begin
    // and the end of the FuncOp (basically the "boundaries" of the subgraph).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 24 15:10:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/analysis/resource_dataflow.cc

      return ResourceConstructingOps();
    }
    ResourceConstructingOps ResourceConstructingOps::EntryState(Value value) {
      if (auto barg = mlir::dyn_cast<BlockArgument>(value)) {
        if (func::FuncOp func =
                dyn_cast<func::FuncOp>(barg.getOwner()->getParentOp())) {
          SymbolTable symbol_table(func->getParentOfType<ModuleOp>());
          auto global_tensor = tf_saved_model::LookupBoundInputOfType<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      for (const Value output_value : outputs) {
        result_types.push_back(output_value.getType());
      }
    
      // 1) Create FuncOp for the StableHLO ops. They will be separate subgraphs.
      builder.setInsertionPoint(&*module_op.begin());
      auto stablehlo_func_op = builder.create<func::FuncOp>(
          module_op.getLoc(), CreateStablehloFunctionName(stablehlo_func_id),
          FunctionType::get(ctx, arg_types, result_types));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top