MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ggml_opt_result_reset

Function ggml_opt_result_reset

external/ggml/src/ggml-opt.cpp:647–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647void ggml_opt_result_reset(ggml_opt_result_t result) {
648 result->ndata = 0;
649 result->loss.clear();
650 result->pred.clear();
651 result->ncorrect = 0;
652}
653
654void ggml_opt_result_ndata(ggml_opt_result_t result, int64_t * ndata) {
655 *ndata = result->ndata;

Callers 4

ggml_opt_fitFunction · 0.85
test_forward_backwardFunction · 0.85
test_idata_splitFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by 3

test_forward_backwardFunction · 0.68
test_idata_splitFunction · 0.68