MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / ggml_nelements

Function ggml_nelements

subprojects/llama.cpp/ggml/src/ggml.c:1226–1230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1224}
1225
1226int64_t ggml_nelements(const struct ggml_tensor * tensor) {
1227 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
1228
1229 return tensor->ne[0]*tensor->ne[1]*tensor->ne[2]*tensor->ne[3];
1230}
1231
1232int64_t ggml_nrows(const struct ggml_tensor * tensor) {
1233 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");

Callers 15

calc_diffMethod · 0.85
runFunction · 0.85
pca_modelMethod · 0.85
merge_tensorMethod · 0.85
build_stackMethod · 0.85
clip_image_batch_encodeFunction · 0.85
load_imatrixFunction · 0.85
load_imatrixMethod · 0.85
set_inputMethod · 0.85
copy_tensor_async_floatsFunction · 0.85

Calls

no outgoing calls

Tested by 9

mainFunction · 0.68
test_roundtrip_on_layerFunction · 0.68
mainFunction · 0.68
test_datasetFunction · 0.68
init_tensor_uniformFunction · 0.68
tensor_to_floatFunction · 0.68
eval_gradMethod · 0.68
initialize_tensorsMethod · 0.68
errMethod · 0.68