Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for getParentRegion (0.29 sec)

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

        if (!ancestor_of_replicate(operand.getParentRegion())) return false;
    
      // _TPUDeviceOrdinalPlaceholder implicitly depends on the replica.
      if (llvm::isa<TF::_TPUDeviceOrdinalPlaceholderOp>(op)) return false;
    
      bool has_replicate_operands = false;
      visitUsedValuesDefinedAbove(op->getRegions(), [&](OpOperand* operand) {
        if (!ancestor_of_replicate(operand->get().getParentRegion()))
          has_replicate_operands = true;
      });
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

          old_launch_op->GetBody().getTerminator()->getOperands().end());
    
      for (Value operand : tpu_copy_with_dynamic_shape_op->getOperands()) {
        if (GetOpOfValue(operand)->getParentRegion() ==
            tpu_copy_with_dynamic_shape_op->getParentRegion()) {
          new_launch_op_results.insert(operand);
        }
      }
    
      for (Value result : tpu_copy_with_dynamic_shape_op->getResults()) {
        new_launch_op_results.remove(result);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

            HasDynamicOutputs(operand.getOwner())) {
          return insertion_point->getParentRegion()->isAncestor(
              operand.getOwner()->getParentRegion());
        }
        return insertion_point->getParentRegion()->isAncestor(
                   operand.getOwner()->getParentRegion()) ||
               (HasOutsideCompilationAncestor(operand.getOwner()) &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc

          // Skip the folding logic if the block argument is not from the function
          // arguments. This can happen when the argument is from a while loop.
          if (block_arg.getParentRegion() != &func_op.getRegion()) {
            return false;
          }
          if (StringAttr attr = func_op.getArgAttrOfType<StringAttr>(
                  block_arg.getArgNumber(), kTFDeviceAttr)) {
            return op_device == attr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

            for (Value operand : op->getOperands()) {
              Operation* operand_op = GetOpOfValue(operand);
              if (head_outside_compiled_ops.count(operand_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
    - 5.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc

            // Only mirrored args of ReplicateOp can be annotated.
            if (mirrored_replicate_args.count(block_arg.getArgNumber()) == 0) {
              continue;
            }
          } else if (!operand.getParentRegion()->isProperAncestor(
                         &replicate.getBody())) {
            // Not a replication-invariant operand.
            continue;
          }
          func.setArgAttr(entry.index(), kReplicationAttr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc

      Type expressed_type = value.getType();
      Type new_type = quant_params.castFromExpressedType(expressed_type);
      // This value isn't an expressed type (float), skip.
      if (!new_type) return;
    
      Block &block = value.getParentRegion()->front();
      Operation *op = value.getDefiningOp();
      if (op) {
        builder.setInsertionPoint(&block, ++Block::iterator(op));
      } else {
        builder.setInsertionPointToStart(&block);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top