Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 380 for getOperation (0.17 sec)

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

      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());
          symbol_table.insert(func_op.getOperation());
        }
      }
      nested_module->erase();
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tf_executor_to_functional.cc

    // order of ops in tf_executor.graph.
    LogicalResult LiftIslandOpInnerOpsFromGraph(tf_executor::GraphOp graph) {
      auto graph_position = graph.getOperation()->getIterator();
      Block* parent_block = graph.getOperation()->getBlock();
      for (Operation& op : graph.GetBody().without_terminator()) {
        auto island_op = llvm::dyn_cast<tf_executor::IslandOp>(op);
        if (!island_op)
          return op.emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc

                     .getOperation();
               });
    
      // mlir::TF::AddOp
      py::class_<mlir::TF::AddV2Op>(m, "Tf_AddV2Op")
          .def("create",
               [](mlir::OpBuilder& opb, mlir::Location loc, mlir::Value x,
                  mlir::Value y) -> mlir::Operation* {
                 return opb.create<mlir::TF::AddV2Op>(loc, x, y).getOperation();
               });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc

        if (!op.isPrivate()) return;
    
        auto call = llvm::dyn_cast<CallableOpInterface>(op.getOperation());
        if (!call) return;
        Region* region = call.getCallableRegion();
        if (!region) return;  // happens e.g. for external functions
    
        auto func = llvm::dyn_cast<FunctionOpInterface>(op.getOperation());
        if (!func || do_not_touch.count(func)) return;
        llvm::BitVector unused_args(func.getNumArguments());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/tpu_cluster_util.cc

            return WalkResult::interrupt();
          host_device = host_device_value;
        }
        cluster_to_host[tpu_cluster.getOperation()] = host_device;
        return tpu_cluster.walk([&](Operation* op) {
          insert_pending_op(op, tpu_cluster);
          return callback(op, tpu_cluster,
                          cluster_to_host[tpu_cluster.getOperation()]);
        });
      });
      if (result.wasInterrupted()) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc

                     const TF::SideEffectAnalysis::Info& side_effect_analysis) {
      // IfRegion ops must be in the same block.
      if (second_if.getOperation()->getBlock() !=
          first_if.getOperation()->getBlock()) {
        return false;
      }
      assert(first_if.getOperation()->isBeforeInBlock(second_if.getOperation()));
    
      llvm::SmallSetVector<Operation*, 4> destination_ops =
          GetAllOpsFromIf(first_if);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference_pass.cc

          input_shapes_ = input_shapes_vec;
        }
    
        auto failure_or_converged = InferModuleShape(
            getOperation(), max_iterations_, /*ops_to_skip=*/{}, input_shapes_);
        if (failed(failure_or_converged)) return signalPassFailure();
        if (!failure_or_converged.value()) {
          getOperation().emitError()
              << "shape inference pass did not reach convergence after "
              << max_iterations_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

      func::FuncOp callee = from.lookup<func::FuncOp>(symbol_ref.getValue());
      callee.getOperation()->getBlock()->getOperations().remove(
          callee.getOperation());
      to.insert(callee);
    }
    
    void TPUBridgeExecutorIslandOutlining::runOnOperation() {
      MLIRContext *ctx = &getContext();
    
      SymbolTable symbol_table(getOperation());
      if (Operation *nested_module = symbol_table.lookup(kNestedModule)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/move_tpu_compile_to_front.cc

      if (op->hasAttr("_wraps_compilation")) return 1;
      // Followed by everything else.
      return 0;
    }
    
    void MoveTpuCompileToFrontPass::runOnOperation() {
      MarkCompilationOps(getOperation());
      getOperation().walk([](Operation* op) {
        for (Region& region : op->getRegions()) {
          for (Block& block : region.getBlocks()) {
            if (block.empty()) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 17 00:26:18 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/name_anonymous_iterators.cc

      return count;
    }
    
    void NameAnonymousIteratorsPass::runOnOperation() {
      int count = 1;
      getOperation().walk(
          [&](TF::AnonymousIteratorOp op) { count = replace(op, count); });
      getOperation().walk(
          [&](TF::AnonymousIteratorV2Op op) { count = replace(op, count); });
      getOperation().walk(
          [&](TF::AnonymousIteratorV3Op op) { count = replace(op, count); });
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top