Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 108 for FuncOp (0.15 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      }
    
      pm.addNestedPass<mlir::func::FuncOp>(mlir::TF::CreateLowerQuantizedPass());
      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::quant::stablehlo::CreateConvertTFQuantTypesPass());
    
      if (lower_to_xla_hlo) {
        for (auto& target_pass : custom_legalization_passes) {
          pm.addNestedPass<mlir::func::FuncOp>(std::move(target_pass));
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc

      // ranges.
      bool SetInputNodesQuantizationParams(func::FuncOp func);
    
      // The function might contain more stats ops than required, and it will
      // introduce requantize if the calibration stats have conflicts. This method
      // tries to remove all the redundant stats ops.
      bool RemoveRedundantStats(func::FuncOp func);
    
      // Verify the quantization specification is expected for quantizing the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc

      CopyDeviceAndUnderscoredAttributes(generator_op, generator_region);
    
      func::FuncOp init_function =
          SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(
              generator_op, generator_op.getInitFunc());
      func::FuncOp next_function =
          SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(
              generator_op, generator_op.getNextFunc());
      func::FuncOp finalize_function =
          SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc

      // ranges.
      bool SetInputNodesQuantizationParams(func::FuncOp func);
    
      // The function might contain more stats ops than required, and it will
      // introduce requantize if the calibration stats have conflicts. This method
      // tries to remove all the redundant stats ops.
      bool RemoveRedundantStats(func::FuncOp func);
    
      // Verify the quantization specification is expected for quantizing the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

        ModuleOp module) {
      SymbolTableCollection table;
      SymbolUserMap symbol_map(table, module);
      llvm::DenseMap<func::FuncOp, llvm::DenseSet<func::FuncOp>> caller_callee_map;
      // Creates work queue for determining reachability below.
      std::queue<func::FuncOp> function_worklist;
    
      for (auto func : module.getOps<func::FuncOp>()) {
        for (auto user : symbol_map.getUsers(func)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

    }
    
    // Returns the entry function, i.e. the callee of `xla_call_module_op`.
    func::FuncOp GetEntryFuncOp(TF::XlaCallModuleOp xla_call_module_op,
                                const SymbolTable symbol_table) {
      const auto entry_function_symbol_ref =
          xla_call_module_op->getAttrOfType<FlatSymbolRefAttr>(kEntryFuncAttrName);
    
      return dyn_cast_or_null<func::FuncOp>(
          symbol_table.lookup(entry_function_symbol_ref.getValue()));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      void TearDown() override {
        fused_lstm_func_.erase();
        fused_lstm_func_cifg_.erase();
        fused_ln_lstm_func_.erase();
        builder_.reset();
      }
    
      func::FuncOp fused_lstm_func_;
      func::FuncOp fused_lstm_func_cifg_;
      func::FuncOp fused_ln_lstm_func_;
      std::unique_ptr<mlir::MLIRContext> context_;
      std::unique_ptr<mlir::Builder> builder_;
    };
    
    TEST_F(LstmUtilsTest, ConvertLSTMCellSimple) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top