Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 248 for getUses (0.14 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

        llvm::SmallVector<Operation*, 4> candidates;
        for (Value value : values) {
          if (incoming) {
            candidates = {value.getDefiningOp()};
          } else {
            candidates.assign(value.getUsers().begin(), value.getUsers().end());
          }
          for (Operation* candidate_op : candidates) {
            if (cluster_ops.contains(candidate_op) ||
                cluster_dependent_ops.contains(candidate_op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc

        if (!type || !type.getElementType().isF32()) {
          return failure();
        }
        return success(
            op->hasOneUse() &&
            IsWeightQuantizableFunction(*op->getUses().begin(), type.getRank()));
      }
    
      // Checks if the operand is second operand of `tf.XlaCallModule` op for
      // `stablehlo.convolution` or `stablehlo.dot_general` with fully_quantizable
      // trait.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc

      // bias is used immediately by the user. This assumption is always correct
      // after constant folding.
      bool UsedAsBias(Value value) {
        for (auto &use : value.getUses()) {
          auto biases = TFL::GetOpQuantSpec(use.getOwner())->biases_params;
          if (biases.find(use.getOperandNumber()) != biases.end()) return true;
        }
        return false;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc

        if (!type || !type.getElementType().isF32()) return false;
    
        Value value = op.getResult();
    
        // Check whether dynamic range quantization can be applied.
        for (auto& use : value.getUses()) {
          Operation* user = use.getOwner();
          int operand_num = use.getOperandNumber();
          std::unique_ptr<OpQuantSpec> spec = GetTFOpQuantSpec(user);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/optimize.cc

              values.getUses().begin().getUser());
          values_slice_op.getResult().replaceAllUsesWith(top_k_op.getValues());
          values_slice_op.erase();
        }
        if (!indices.use_empty()) {
          auto indices_slice_op = llvm::dyn_cast_or_null<TFL::SliceOp>(
              indices.getUses().begin().getUser());
          indices_slice_op.getResult().replaceAllUsesWith(top_k_op.getIndices());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

        // Unsure if this check is required.
        if (state.pos != pos) {
          return;
        }
      }
      if (pos == RequantizeState::ON_OUTPUT) {
        Operation* user = value.getUses().begin().getUser();
        if (isa<quantfork::QuantizeCastOp>(user)) {
          // The requantize op is inserted between `quantize` and `dequantize` ops.
          value = user->getResult(0);
          builder_.setInsertionPointAfter(user);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

    }
    
    std::optional<RankedTensorType> GetElementTypeFromAccess(
        Value collection, ModuleOp module,
        llvm::function_ref<std::optional<Type>(Operation*)> infer_from_op) {
      for (auto& use : collection.getUses()) {
        if (auto while_op = llvm::dyn_cast<TF::WhileOp>(use.getOwner())) {
          auto body = while_op.body_function();
          assert(body);
          auto type_from_body = GetElementTypeFromAccess(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top