Update ggml.h
This commit is contained in:
parent
d85a629a6c
commit
607fbe99c7
1 changed files with 4 additions and 0 deletions
4
ggml.h
4
ggml.h
|
@ -1899,6 +1899,10 @@ extern "C" {
|
|||
// dump the graph into a file using the dot format
|
||||
GGML_API void ggml_graph_dump_dot(const struct ggml_cgraph * gb, const struct ggml_cgraph * gf, const char * filename);
|
||||
|
||||
// visualize the tensor - extended adds more information - when printing sample content extended will also print src0 and src1 content
|
||||
// example: ggml_tensor_printf(some_ggml_tensor,"function_name",0,true,true);
|
||||
void ggml_tensor_printf(const struct ggml_tensor *tensor, char *prefix, int line, bool extended, bool print_sample);
|
||||
|
||||
// build gradient checkpointing backward graph gb for gf using provided checkpoints
|
||||
// gb_tmp will contain original backward graph with rewritten backward process nodes,
|
||||
// but without the second forward pass nodes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue