llamacpp
llamacpp
参考文档,资料汇总
RISC-V Base Vector Extension Document
博客记录
一点C++基础
1
2
3
4
5
6
7
8
9
10
struct simple_model {
// 成员变量...
// 构造函数:与 struct 同名,没有返回值类型
simple_model(const std::string & backend_name) {
// 初始化代码...
}
// 析构函数:前面有 ~ 符号
~simple_model() {
// 清理代码...
}};
杂七杂八的附录
- 打印计算图:
ggml_graph_print(gf)ggml_graph_dump_dot(gf, NULL, "debug.dot")打印成graphviz 的 dot 文件格式dot文件图片渲染
This post is licensed under CC BY 4.0 by the author.