Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 86 for getAxes (0.28 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

        TF::TPUReplicatedInputOp private_input = input.clone();
        builder.insert(private_input);
        forward_pass_ops.insert(private_input);
        for (OpOperand& next_use : input.getOutput().getUses()) {
          if (!forward_pass_ops.contains(next_use.getOwner())) continue;
          next_use.getOwner()->setOperand(next_use.getOperandNumber(),
                                          private_input.getOutput());
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

    // -------------------------------------------------------------------------- //
    
    namespace {
    constexpr char kDeviceAttr[] = "device";
    
    // A type that abstracts over types that have uses accessible via `getUses`.
    using Source = PointerUnion<Operation *, BlockArgument *>;
    
    // We use union-find algorithm to build clusters of connected operations based
    // on the user provided policy. If an operation can be clustered (one of the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

        ShapedType new_result_type = old_result_type.clone(quantized_type);
    
        // Insert CastOp if it does not exist yet. Otherwise, just rewire without
        // creating a CastOp.
        for (auto& connected_op : op.getResult().getUses()) {
          auto cast_op = llvm::dyn_cast_or_null<CastOp>(connected_op.getOwner());
          if (cast_op && cast_op.getType() == new_result_type) {
            quantize_op->setOperand(quantize_operand_num, cast_op);
            return;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/WorkerDaemonClientsManager.java

            synchronized (lock) {
                List<WorkerDaemonClient> sortedClients = CollectionUtils.sort(idleClients, comparingInt(WorkerDaemonClient::getUses));
                List<WorkerDaemonClient> clientsToStop = selectionFunction.transform(new ArrayList<>(sortedClients));
                if (!clientsToStop.isEmpty()) {
                    stopWorkers(clientsToStop);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:54:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc

        // determine whether we have taken care of all uses and can remove
        // the arg.
        for (BlockArgument arg : func.getArguments()) {
          auto uses = arg.getUses();
          use_count[arg.getArgNumber()] = std::distance(uses.begin(), uses.end());
          argument_to_index.insert({arg, arg.getArgNumber()});
        }
    
        // We're only considering return values that are the same (at this
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc

      xla::OpSharding sharding;
      sharding.ParseFromString(
          old_partitioned_input.get_XlaShardingAttr().getValue().str());
      for (OpOperand& read_use :
           llvm::make_early_inc_range(old_read.getValue().getUses())) {
        if (dyn_cast_or_null<tf_device::ClusterFuncOp>(read_use.getOwner())) {
          // ClusterFunc's use of the Read is replaced with use of the
          // TPUPartitionedInputV2.
          read_use.set(new_partitioned_input);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

      for (auto ret_vals : llvm::zip(results, cluster.getResults())) {
        Value old_ret = std::get<0>(ret_vals);
        Value new_ret = std::get<1>(ret_vals);
        for (auto& use : llvm::make_early_inc_range(old_ret.getUses())) {
          Operation* user = use.getOwner();
          if (!body->findAncestorOpInBlock(*user)) use.set(new_ret);
        }
      }
    
      // Move ops that depend on something in the cluster behind the cluster.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  8. pkg/kubelet/volume_host.go

    	return kvh.kubelet.nodeName
    }
    
    func (kvh *kubeletVolumeHost) GetEventRecorder() record.EventRecorder {
    	return kvh.kubelet.recorder
    }
    
    func (kvh *kubeletVolumeHost) GetExec(pluginName string) utilexec.Interface {
    	return kvh.exec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

        while (!uses_at_current_level.empty()) {
          llvm::SmallVector<mlir::Value> next_values_to_visit;
          for (auto cur_op : uses_at_current_level) {
            for (auto& cur_op_use : cur_op.getUses()) {
              Operation* next_op = cur_op_use.getOwner();
              int next_op_operand_num = cur_op_use.getOperandNumber();
              if (auto call_op = llvm::dyn_cast<mlir::CallOpInterface>(next_op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc

    // if there is only one.
    Operation* GetUserIfOnlyOne(Operation* op) {
      if (op->getNumResults() != 1) return nullptr;
      auto result = op->getResult(0);
      if (!result.hasOneUse()) return nullptr;
      return (*result.getUses().begin()).getOwner();
    }
    
    // Gets operation providing value for the given operand of given operation
    // if the given operation is the only user.
    Operation* GetInputOpWithOneUse(Operation* op, int opr_num) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top