mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-15 06:42:31 +00:00
#1539: preserve stroke corrections and current main APIs
This commit is contained in:
1 parent
fa46bbcb88
commit
baa1ca31b3
14 files changed
+94
-93
No files matched your search
@@ -237,7 +237,7 @@ impl GpuEncoder {
|
||||
let px = g.upload(&pixels.contiguous()?.flatten_all()?.to_vec1::<f32>()?);
|
||||
let (mut h, mut w) = (ph / 4, pw / 4);
|
||||
let tokens = g.zeros(h * w * hidden)?;
|
||||
g.patch_embed(&px, &self.patch_w, &self.patch_b, &tokens, ph, pw, hidden)?;
|
||||
g.patch_embed(&px, &self.patch_w, &self.patch_b, &tokens, (ph, pw, hidden))?;
|
||||
let mut x = g.zeros(h * w * hidden)?;
|
||||
g.add(&tokens, &self.pos_buffer(h, w)?, &x, h * w * hidden)?;
|
||||
let mut stages: Vec<(Buf, usize, usize, usize)> = vec![];
|
||||
|
||||
Reference in new issue
Block a user