]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
Fix SAM example mask output with latest ggml
authorYavorGIvanov <redacted>
Fri, 8 Sep 2023 13:17:44 +0000 (16:17 +0300)
committerYavorGIvanov <redacted>
Fri, 8 Sep 2023 13:17:47 +0000 (16:17 +0300)
commitca21b435983c77cc4c008d7fd145151e6cb3b0cd
tree4d00bb0b4d277b0805c9c8303904c95e9d034ef3
parent79ea7a41a388e9e7c85e426e912ab38399c44bfa
Fix SAM example mask output with latest ggml

- I am not sure why this inplace removal causes the output to turn
  correct again. I spend some time debugging and trying different
things, but my assumption is that some dependency is not properly
propagated and the allocator doesn't know about some tensor and
therefore decided to free it and overwrite its memory
- I also added commented out build_forward_expand, which also fixes
the output, but I am still not sure why
- Additionally I am still trying to figure out why the
  ggml_allocr_alloc(..) calls after the ggml_conv_transpose_2d_p0 are
needed
- I guess I have to spend some time debugging the ggml allocator and
  figure out what wrong is happening in this operations. Probably
something wrong in the operation implementation that I am unable to
notice.

Fixes #510.
examples/sam/main.cpp