Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9e5852

Browse filesBrowse files
committed
Fix un-initialized FP16 tables on x86 (abetlen#15, abetlen#2)
1 parent 7d9ed7b commit a9e5852
Copy full SHA for a9e5852

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed

‎quantize.cpp

Copy file name to clipboardExpand all lines: quantize.cpp
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ int main(int argc, char ** argv) {
296296
return 1;
297297
}
298298

299+
// needed to initialize f16 tables
300+
{
301+
struct ggml_init_params params = { 0, NULL };
302+
struct ggml_context * ctx = ggml_init(params);
303+
ggml_free(ctx);
304+
}
305+
299306
const std::string fname_inp = argv[1];
300307
const std::string fname_out = argv[2];
301308

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.