- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 89 for clonePod (0.21 sec)
-
pkg/scheduler/internal/queue/scheduling_queue_test.go
if err != nil { t.Fatalf("unexpected error from AddUnschedulableIfNotPresent: %v", err) } expectInFlightPods(t, q) // Construct a Pod, but don't associate its scheduler failure to any plugin hpp1 := clonePod(highPriorityPodInfo.Pod, "hpp1") q.activeQ.Add(q.newQueuedPodInfo(hpp1)) if p, err := q.Pop(logger); err != nil || p.Pod != hpp1 { t.Errorf("Expected: %v after Pop, but got: %v", hpp1, p.Pod.Name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0) -
test/typeparam/issue53087.go
var _ I = &S{} type CloningMap[K comparable, V any] struct { inner map[K]V } func (cm CloningMap[K, V]) With(key K, value V) CloningMap[K, V] { result := CloneBad(cm.inner) result[key] = value return CloningMap[K, V]{result} } func CloneBad[M ~map[K]V, K comparable, V any](m M) M { r := make(M, len(m)) for k, v := range m { r[k] = v } return r } func main() { s1 := &S{"one"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 08 16:23:09 UTC 2023 - 930 bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sink_constant.cc
// We found a constant, try to insert it in the map and re-use its // cloned value if any. auto map_entry = sunk_constant.try_emplace(constant, nullptr); if (!map_entry.second) { // This constant has already been cloned into the region, reuse it. use->set(map_entry.first->getSecond().getResult());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/jit/clone_constants_for_better_clustering.cc
Node* n); string GenerateUniqueName(const absl::flat_hash_set<string>& name_set, absl::string_view prefix); absl::StatusOr<Node*> CloneNode(const absl::flat_hash_set<string>& name_set, Node* n); Graph* graph_; int unique_name_counter_; }; string CloneConstantsForBetterClusteringPassImpl::GenerateUniqueName(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc
} auto cloned = llvm::cast<func::FuncOp>(builder.clone(*f)); cloned->removeAttr(kFromXlaCallModuleAttrName); if (f == entry_func) { // Entry function must be public and has symbol name "@main". cloned.setPublic(); cloned.setName(kStablehloMainFunctionName); } else { cloned.setPrivate(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
SmallVector<func::FuncOp, 2> cloned_branches; cloned_branches.reserve(branches.size()); for (func::FuncOp func : branches) { func::FuncOp cloned = CloneFunctionIfNeeded(func); cloned_branches.push_back(cloned); if (cloned == func) continue; // Patch up the op attribute to point to the new function. for (NamedAttribute attr : op->getAttrs()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
platforms/software/version-control/src/integTest/groovy/org/gradle/vcs/internal/GitVcsIntegrationTest.groovy
} """ when: succeeds('assemble') then: // Git repo is cloned def gitCheckout = checkoutDir(repo.name, commit.id.name, repo.id) gitCheckout.file('.git').assertExists() // Submodule is cloned gitCheckout.file('deeperDep/.git').assertExists() gitCheckout.file('deeperDep/foo').text == "bar"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 16.6K bytes - Viewed (0) -
platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/transform/ClosureBackedRuleFactory.java
Closure<?> cloned = closure.rehydrate(null, closure.getThisObject(), closure.getThisObject()); ((TransformedClosure) cloned).makeRule(new PotentialInputs(modelViews, inputValues), supportsNestedRules ? ClosureBackedRuleFactory.this : null); ClosureBackedAction.execute(t, cloned); } })); } };
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/constant_op_device_assignment.cc
StringAttr device_attr = user_op->getAttrOfType<StringAttr>(kDeviceAttr); if (!device_attr) { all_uses_replaced = false; continue; } // Cloned the ConstOp and set its device attribute to be the same as the // device of the user operation. if (cloned_op_by_device.find(device_attr.getValue()) == cloned_op_by_device.end()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 3.3K bytes - Viewed (0) -
src/runtime/testdata/testprog/lockosthread.go
// thread IDs, it does this by unsharing state on that thread. This way, it // also detects whether new threads were cloned from the dead thread, and not // from a clean thread. Cloning from a locked thread is undesirable since // cloned threads will inherit potentially unwanted OS state. // // unshareFs, getcwd, and chdir("/tmp") are only guaranteed to work on
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:00:09 UTC 2024 - 6.6K bytes - Viewed (0)