Skip to content

Commit

Permalink
improve err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Sep 23, 2024
1 parent a6c18e4 commit 87be977
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/core/machine/src/cpu/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ impl CpuChip {
fn pad_to_power_of_two<F: PrimeField32>(&self, shape: &Option<CoreShape>, values: &mut Vec<F>) {
let n_real_rows = values.len() / NUM_CPU_COLS;
let padded_nb_rows = if let Some(shape) = shape {
1 << shape.inner[&MachineAir::<F>::name(self)]
let name = MachineAir::<F>::name(self);
1 << shape.inner.get(&name).expect(&format!("fail to get shape of {}", name))
} else if n_real_rows < 16 {
16
} else {
Expand Down

0 comments on commit 87be977

Please sign in to comment.