- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 98 for getUses (0.39 sec)
-
platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonClientsManagerTest.groovy
} def "prefers to stop less frequently used idle clients when releasing memory"() { def client1 = Mock(WorkerDaemonClient) { _ * getUses() >> 5 } def client2 = Mock(WorkerDaemonClient) { _ * getUses() >> 1 } def client3 = Mock(WorkerDaemonClient) { _ * getUses() >> 3 } starter.startDaemon(options) >>> [client1, client2, client3]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 21 14:56:11 UTC 2024 - 10.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
llvm::MapVector<Operation*, llvm::SmallVector<unsigned int, 4>>* arguments_to_erase) { auto arg = region->getArgument(argument_index); for (auto& usage : arg.getUses()) { auto* user_op = usage.getOwner(); int operand_index = usage.getOperandNumber(); PropagateUsage(user_op, operand_index, value, work_list, arguments_to_erase); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc
const ShapedType type = mlir::dyn_cast<ShapedType>(op.getType()); if (!type || !type.getElementType().isF32()) return quantizable_ops; const Value value = op.getResult(); for (OpOperand& use : value.getUses()) { Operation* user = use.getOwner(); const int operand_num = use.getOperandNumber(); quantizable_ops.insert({user, operand_num}); } return quantizable_ops; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc
for (auto& use : uses_optional.value()) { if (llvm::isa<TF::WhileOp>(use.getUser())) { if (*while_op != nullptr) { use.getUser()->emitOpError() << "multiple users of function."; return LogicalResult::failure(); } else { *while_op = llvm::cast<TF::WhileOp>(use.getUser()); } } else { use.getUser()->emitOpError() << "non while use of function.";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.4K bytes - Viewed (0) -
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) -
tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc
// multiple such activations, one is returned (with no guarantee as to which // one). If there are no activation functions that use the output, returns // nullptr. Operation *GetActivation(Value op) { for (auto &use : op.getUses()) { if (IsActivationFunction(use.getOwner())) return use.getOwner(); } return nullptr; } // Finds and returns a BiasAdd that uses the result of `op` as the `value`
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.9K bytes - Viewed (0) -
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) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc
// terminator. bool checkIfAnyUserIsConnectedToTermiantor(BlockArgument op) const { for (const auto& user : op.getUsers()) { if (user->template hasTrait<OpTrait::IsTerminator>()) return true; if (auto next_user = dyn_cast_or_null<TF::IdentityOp>(user)) { return (*(next_user->getResult(0).getUsers().begin())) ->template hasTrait<OpTrait::IsTerminator>(); } } return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 11.3K bytes - Viewed (0) -
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) -
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)