]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml : return input tensor in ggml_set_name (#262)
authorLoganDark <redacted>
Fri, 16 Jun 2023 19:39:09 +0000 (12:39 -0700)
committerGitHub <redacted>
Fri, 16 Jun 2023 19:39:09 +0000 (22:39 +0300)
commit070f170ac03987ad888b3c37050185a859a3c011
treedde4f771b3cbf5762942e5e5af7cf20e608fc167
parent71555407ae06852ecfdb569fe0e94145fbac5988
ggml : return input tensor in ggml_set_name (#262)

this is SO USEFUL for debugging. in order to find any cgraph node,
I can wrap it in ggml_set_name and set a conditional breakpoint.

but I can only wrap existing code if this returns its input.
otherwise the barrier becomes annoyingly high (have to move a
bunch of code around to add name to a tensor)
include/ggml/ggml.h
src/ggml.c