- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for MoveBefore (0.15 sec)
-
src/container/list/list_test.go
l.MoveBefore(e2, e2) checkListPointers(t, l, []*Element{e1, e2, e3, e4}) l.MoveAfter(e3, e2) checkListPointers(t, l, []*Element{e1, e2, e3, e4}) l.MoveBefore(e2, e3) checkListPointers(t, l, []*Element{e1, e2, e3, e4}) l.MoveBefore(e2, e4) checkListPointers(t, l, []*Element{e1, e3, e2, e4}) e2, e3 = e3, e2 l.MoveBefore(e4, e1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 7.7K bytes - Viewed (0) -
test/typeparam/listimp2.dir/main.go
l.MoveAfter(e3, e3) a.CheckListPointers(l, []*(a.Element[int]){e1, e2, e3, e4}) l.MoveBefore(e2, e2) a.CheckListPointers(l, []*(a.Element[int]){e1, e2, e3, e4}) l.MoveAfter(e3, e2) a.CheckListPointers(l, []*(a.Element[int]){e1, e2, e3, e4}) l.MoveBefore(e2, e3) a.CheckListPointers(l, []*(a.Element[int]){e1, e2, e3, e4}) l.MoveBefore(e2, e4) a.CheckListPointers(l, []*(a.Element[int]){e1, e3, e2, e4}) e2, e3 = e3, e2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/device_attribute_to_launch.cc
builder.create<tf_device::ReturnOp>(op->getLoc(), op->getResults()) .getOperation(); MLIRContext* context = launch_op.getContext(); op->removeAttr(StringAttr::get(context, kDeviceAttr)); op->moveBefore(return_op); } void DeviceAttributeToLaunch::runOnOperation() { const Dialect* tf_dialect = getContext().getLoadedDialect("tf"); getOperation().walk([&](Operation* op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 00:59:46 UTC 2022 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_inline_device_ops.cc
llvm::SmallVector<Operation*, 4> non_terminator_ops; for (Operation& op : block.without_terminator()) { non_terminator_ops.push_back(&op); } for (auto op : non_terminator_ops) { op->moveBefore(cluster_op); } auto& return_op = cluster_op.GetBody().front(); // This is the last op, should be tf_device::ReturnOp. assert(mlir::isa<mlir::tf_device::ReturnOp>(return_op)); Value old_val, new_val;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 00:59:46 UTC 2022 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sink_constant.cc
return; } if (constant.hasOneUse()) { LLVM_DEBUG(llvm::dbgs() << "Moved constant " << constant << "\n"); const_op.getOperation()->moveBefore(&body.begin()->front()); return; } map_entry.first->getSecond() = const_op.clone(); body.begin()->getOperations().insert(body.begin()->begin(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 4.3K bytes - Viewed (0) -
src/container/list/list.go
return } // see comment in List.Remove about initialization of l l.move(e, l.root.prev) } // MoveBefore moves element e to its new position before mark. // If e or mark is not an element of l, or e == mark, the list is not modified. // The element and mark must not be nil. func (l *List) MoveBefore(e, mark *Element) { if e.list != l || e == mark || mark.list != l { return } l.move(e, mark.prev) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util.cc
launch.getBody().push_back(new mlir::Block); builder->setInsertionPointToEnd(&launch.GetBody()); builder->create<mlir::tf_device::ReturnOp>(loc, op->getResults()); // Move op inside cluster. op->moveBefore(launch.GetBody().getTerminator()); builder->restoreInsertionPoint(insert_point); return launch; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 13 03:57:18 UTC 2023 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_colocate_composite_resource_ops.cc
op->replaceAllUsesWith(launch); builder->setInsertionPointToEnd(&launch.GetBody()); builder->create<tf_device::ReturnOp>(loc, op->getResults()); // Move op inside cluster. op->moveBefore(launch.GetBody().getTerminator()); } llvm::SmallVector<Operation*, 4> GetResourceOpsUsingCompositeArgsInReplicate( tf_device::ReplicateOp replicate) { llvm::SmallVector<Operation*, 4> resource_users;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 16 17:41:12 UTC 2023 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc
if (read->isBeforeInBlock(peer)) continue; if (llvm::isa<ReadVariableOp>(peer)) continue; has_conflicting_write = true; } if (has_conflicting_write) continue; read->moveBefore(replicate); } } // Hoist `ReadVariableOp`s above the `tf_device.replicate`s. void HoistBroadcastRead::runOnOperation() { FuncOp func = getOperation();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc
auto cluster = builder.create<mlir::tf_device::ClusterOp>( call_op->getLoc(), call_op->getResultTypes()); cluster.getBody().push_back(new Block); call_op->replaceAllUsesWith(cluster.getResults()); call_op->moveBefore(&cluster.GetBody(), cluster.GetBody().end()); builder.setInsertionPointToEnd(&cluster.GetBody()); builder.create<mlir::tf_device::ReturnOp>(call_op->getLoc(), call_op->getResults());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 19:09:44 UTC 2023 - 6K bytes - Viewed (0)