- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for MoveBefore (0.95 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc
operand->get().getType() == ShuffleRankedTensorType(ranked_tranpose_type, permutation)) { TransposeOp transpose = tranpose_op; transpose.getOperation()->moveBefore(op); transpose.setOperand(0, operand->get()); transpose.setOperand(1, permutation_op); transpose_ops->erase(it); return transpose; } } } return nullptr; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
} Block* old_block = preprocess_op->getBlock(); Block* launch_block = new Block; for (Operation& op : llvm::make_early_inc_range(old_block->getOperations())) { if (ops_to_move.contains(&op)) { op.moveBefore(launch_block, launch_block->end()); } } // Create the new launch op after TPUCompileOp with the preprocessing ops. tf_device::LaunchOp moved_launch_op =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K 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/tensorflow/transforms/replicate_invariant_op_hoisting.cc
// defined by tf_device.replicate. if (DescendantUsesVirtualDevice(virtual_device_list, &inner_op)) continue; if (IsOpReplicateInvariant(replicate_region, &inner_op)) inner_op.moveBefore(replicate_op); } } void ReplicateInvariantOpHoistingPass::runOnOperation() { getOperation().walk( [](tf_device::ReplicateOp op) { HoistReplicateInvariantOps(op); }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
cluster.getResults()); } for (auto pi : partitioned_inputs) pi->moveBefore(result_op); cluster.getOperation()->moveBefore(result_op); return success(); } // Forms clusters with ops of the same `_replication_info` attribute under a // block. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
tpu_copy_with_dynamic_shape_op->getLoc(), tpu_copy_with_dynamic_shape_op->getResults()) .getOperation(); tpu_copy_with_dynamic_shape_op->moveBefore(return_op); return success(); } // Update all the usage of tf_device.return op with launch op result. void UpdateReturnOpResultWithLaunchOpResult(tf_device::LaunchOp* launch_op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
Block* launch_block = new Block; for (Operation* head_outside_compiled_op : head_outside_compiled_ops) { head_outside_compiled_op->removeAttr(kXlaOutsideCompilationAttr); head_outside_compiled_op->moveBefore(launch_block, launch_block->end()); } mlir::tf_device::LaunchOp launch = CreateLaunchForBlock( builder, cluster, /*before=*/true, launch_block, host_device);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
// and packed args. arg.replaceAllUsesWith( new_replicate.GetBody().getArgument(arg.getArgNumber() + 1)); } } for (auto& op : llvm::make_early_inc_range(replicate.GetBody())) { op.moveBefore(&new_replicate.GetBody(), new_replicate.GetBody().end()); } replicate.replaceAllUsesWith(new_replicate); replicate.erase(); return new_replicate; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc
HasControlDependencyWithUnscheduledOp(op, block, unscheduled_ops)) { continue; } unscheduled_ops.erase(&op); if (Block::iterator(op) != last_scheduled_op) op.moveBefore(block, last_scheduled_op); else ++last_scheduled_op; scheduled_at_least_once = true; } if (!scheduled_at_least_once) return failure(); } return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 27.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc
Operation* after_op_r) { for (Operation& op : llvm::make_early_inc_range(device_cluster.GetBody())) { if (&op != device_cluster.GetBody().getTerminator()) { op.moveBefore(after_op_r); } } } // Move ops in the tmp host launch op to new host launch op void MoveTmpLaunchOpToNewLaunchOp(mlir::tf_device::LaunchOp tmp_host_launch_op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 68.3K bytes - Viewed (0)