Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getParentRegion (0.2 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

        auto read_op = llvm::dyn_cast_or_null<TF::ReadVariableOp>(
            operand.value().get().getDefiningOp());
        if (!read_op) continue;
        if (check_same_region &&
            read_op->getParentRegion() != execute_parent->getParentRegion())
          continue;
    
        auto resource = read_op.getResource();
        if (check_device) {
          // TODO(lyandy): Wrap resource ops in tf_device.launch.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc

            // For a block argument, consider transforms only when it is a
            // replicated input (defining ops will be outside the replicate node).
            if (maybe_replicate != block_arg.getParentRegion()->getParentOp() ||
                !HandleReplicatedInputs(execute_arg_index, execute.getKey(),
                                        execute_launch, compile_launch, block_arg,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

          bool is_region_capture =
              replicate_operand.getParentRegion()->isProperAncestor(&body);
          bool has_other_use_in_body =
              llvm::any_of(replicate_operand.getUsers(), [&](Operation* user) {
                // Ignore uses that are not in the while body or condition.
                if (!body.isAncestor(user->getParentRegion()) &&
                    !cond.isAncestor(user->getParentRegion()))
                  return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

            Operation* operand_op = GetOpOfValue(operand);
            if (head_outside_compiled_ops.count(operand_op) ||
                operand_op == &cluster_op)
              continue;
    
            if (operand_op->getParentRegion() == cluster_region)
              return WalkResult::interrupt();
          }
          return WalkResult::advance();
        });
    
        if (!walk_result.wasInterrupted())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

          // For a block argument, consider transforms only when it is a replicated
          // input (defining ops will be outside the replicate node).
          if (maybe_replicate == block_arg.getParentRegion()->getParentOp()) {
            HandleHostReplicatedInputs(input.index(), cluster_func, block_arg,
                                       maybe_replicate, block_size);
          }
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

      absl::flat_hash_set<Region*> regions_with_token;
      while (!worklist.empty()) {
        Operation* op = worklist.back();
        worklist.pop_back();
    
        Region* region = op->getParentRegion();
        regions_with_token.insert(region);
    
        // If the parent is not a FuncOp, then add the parent op containing a region
        // to worklist.
        Operation* parent = region->getParentOp();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

                       ArgMatcherFn matcher) {
      if (first.getNumOperands() != second.getNumOperands()) return false;
    
      Region& first_region = *first->getParentRegion();
      Region& second_region = *second->getParentRegion();
    
      for (auto it : llvm::zip(first.getArgOperands(), second.getArgOperands())) {
        // Get the defining Op, skipping over casts.
        auto get_defining_op = [](Value value) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      }
    
      return func.getName().str();
    }
    
    absl::StatusOr<std::unique_ptr<NodeDef>> Exporter::GetArgumentNode(
        BlockArgument arg, unsigned index, llvm::StringRef name) {
      auto func = arg.getParentRegion()->getParentOfType<FuncOp>();
    
      auto node_def = std::make_unique<NodeDef>();
      if (!name.empty())
        node_def->set_name(std::string(ParseTensorName(name.str()).node()));
      else
        node_def->set_name(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      }
    
      return func.getName().str();
    }
    
    absl::StatusOr<std::unique_ptr<NodeDef>> Exporter::GetArgumentNode(
        BlockArgument arg, unsigned index, llvm::StringRef name) {
      auto func = arg.getParentRegion()->getParentOfType<FuncOp>();
    
      auto node_def = std::make_unique<NodeDef>();
      if (!name.empty())
        node_def->set_name(std::string(ParseTensorName(name.str()).node()));
      else
        node_def->set_name(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      // multiple TPU clusters.
      Region* region = (*forward_pass_ops.begin())->getParentRegion();
      StringAttr replication_attr = GetReplicationAttr(*forward_pass_ops.begin());
      llvm::SmallVector<Operation*> checkset(forward_pass_ops.getArrayRef());
      checkset.append(backward_pass_ops.begin(), backward_pass_ops.end());
      for (Operation* op : checkset) {
        if (op->getParentRegion() != region) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top