Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertdelajonquieresonos committed Dec 9, 2024
1 parent 752b9d5 commit 3f3099d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metal/src/rewrite_rules/rewire_metal_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn rewire_metal_sync_after_const(
let Some(gpu_const) = op.0.as_metal_tensor() else { return Ok(None) };
let cpu_const = gpu_const.to_cpu()?;

// Identify precessor ToCpu
// Identify successor ToCpu
let Some(sync_cpu) = next_node(model, node) else { return Ok(None) };
let Some(sync_cpu_op) = sync_cpu.op_as::<MetalSync>() else { return Ok(None) };
rule_ensure!(sync_cpu_op.kind == MetalSyncKind::ToCpu);
Expand Down

0 comments on commit 3f3099d

Please sign in to comment.