Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 445 for FuncOp (0.21 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_passes.td

      let dependentDialects = ["mhlo::MhloDialect", "sparse_tensor::SparseTensorDialect"];
    }
    
    def VerifyTFXLALegalization : Pass<"tfxla-verify-legalization", "mlir::func::FuncOp"> {
      let summary = "Verifies that all TF ops have been legalized to XLA.";
    
      let description = [{"Ensures that all Tensorflow ops have been legalized to "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 17:44:14 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/tensorflow/passes.h

    namespace mlir {
    namespace TF {
    
    // Legalize the tf ops to the quant ops, so the quantization passes can work.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateLegalizeTFToQuantPass();
    
    // Fallbacks ops that are not supported by TF Quantization to TFLite Flex ops.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateFallbackToFlexOpsPass(
        const std::string &mode = "DEFAULT");
    
    }  // namespace TF
    }  // namespace mlir
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 08 00:46:29 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

        // Note: lookupSymbol is a linear lookup which means the overall
        // complexity = # ReduceDataset ops x # of functions in module.
        func::FuncOp reduce_func =
            function->getParentOfType<ModuleOp>().lookupSymbol<FuncOp>(
                reduce_dataset.getF());
    
        // The reduce function arguments consist of three part in this order:
        // 1. Reduction state inputs.
        // 2. Dataset inputs.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc

      // Move all remaining nested functions back into the parent module.
      Block &nested_block = nested_module->getRegion(0).front();
      for (func::FuncOp func_op :
           llvm::make_early_inc_range(nested_block.getOps<func::FuncOp>())) {
        if (!symbol_table.lookupSymbolIn(getOperation(), func_op.getName())) {
          nested_block.getOperations().remove(func_op.getOperation());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

        FunctionType func_type =
            FunctionType::get(context, input_types, result_types);
        Location loc = metadata.ops.front()->getLoc();
        func::FuncOp func_op = func::FuncOp::create(loc, func_name, func_type);
        // Sets the device attribute for every input and every result of the
        // function.
        for (int i : llvm::seq<int>(0, metadata.input_devices.size())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

        // side effect analysis of their parent functions are invalidated. They
        // need to be recomputed.
        recompute_analysis_for_funcs.insert(
            while_op->getParentOfType<func::FuncOp>());
        func::FuncOp while_cond = while_op.cond_function();
        // Rewrite while op with extra chaining arguments and results.
        while_op = RewriteWhileOp(while_op, num_chains, chaining_data_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_remaining_ops.cc

      if (!status.ok()) {
        return op.emitError()
               << "attribute 'host_mlir_module' can not be deserialized. "
               << status.message();
      }
    
      func::FuncOp func = module_for_func->lookupSymbol<func::FuncOp>("host_func");
      if (!func)
        return op.emitError()
               << "serialized module in attribute 'host_mlir_module' does not "
                  "contain 'host_func' function.";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 20:05:58 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/analysis/tensor_array_side_effect_analysis.cc

        mlir::func::FuncOp func_op) {
      for (mlir::Operation& op : func_op.front()) {
        if (!mlir::isMemoryEffectFree(&op) && !IsTensorArrayOp(&op)) return false;
      }
    
      return true;
    }
    
    TensorArraySideEffectAnalysis::TensorArraySideEffectAnalysis(
        mlir::ModuleOp module) {
      for (auto func_op : module.getOps<mlir::func::FuncOp>()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 16 01:49:07 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/materialize_mlir_passthrough_op.cc

            parseSourceString<ModuleOp>(module_string, op.getContext());
        if (!nested_module) {
          op->emitError() << "could not parse attached MLIR module";
          return;
        }
        func::FuncOp main =
            dyn_cast<func::FuncOp>(nested_module->lookupSymbol("main"));
        if (!main) {
          op->emitError() << "MLIR Opaque Op expects a main() entry point\n";
          return;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc

                               ->getAttrOfType<FlatSymbolRefAttr>(
                                   TF::kStablehloEntryFunctionAttrName)
                               .getValue();
      func::FuncOp func_op = symbol_table.lookup<func::FuncOp>(function_name);
    
      // We should not unwrap if the function is not from
      // ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOpsPass.
      if (!func_op->hasAttr(TF::kFromXlaCallModuleAttrName)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top