fix padding
padding was being added to offset but not to the running count
This commit is contained in:
parent
ff1f74534b
commit
bde6b46ce9
@ -650,9 +650,5 @@ func ggufWriteTensorInfo(ws io.WriteSeeker, t *Tensor) error {
|
||||
}
|
||||
|
||||
func ggufPadding(offset, align int64) int64 {
|
||||
// if we already fit perfectly onto a 16 byte boundary, don't bother padding
|
||||
if ((align-offset%align)%align)%16 == 0 {
|
||||
return 0
|
||||
}
|
||||
return (align - offset%align) % align
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user