Skip to content

Commit

Permalink
Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurBrussee committed Jan 6, 2025
1 parent 1f7714c commit 20374d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/brush-train/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn tensor_into_image(data: TensorData) -> DynamicImage {
panic!("Unsupported number of channels: {c}");
}
}
_ => panic!("unsopported dtype {:?}", data.dtype),
_ => panic!("unsupported dtype {:?}", data.dtype),
};

img
Expand Down
2 changes: 1 addition & 1 deletion crates/brush-ui/src/burn_texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl BurnTexture {
let padded_shape = vec![height, width.div_ceil(64) * 64, c];

// Create padded tensor if needed. The bytes_per_row needs to be divisible
// by 256 in WebGPU, so 4 bytes per pixel means width needs to be disible by 64.
// by 256 in WebGPU, so 4 bytes per pixel means width needs to be divisible by 64.
let img = if width % 64 != 0 {
let padded: Tensor<InnerWgpu, 3> = Tensor::zeros(&padded_shape, &img.device);
let img = Tensor::from_primitive(TensorPrimitive::Float(img));
Expand Down

0 comments on commit 20374d2

Please sign in to comment.