MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_get_unary_op

Function ggml_get_unary_op

ggml.c:3020–3023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3018}
3019
3020enum ggml_unary_op ggml_get_unary_op(const struct ggml_tensor * tensor) {
3021 GGML_ASSERT(tensor->op == GGML_OP_UNARY);
3022 return (enum ggml_unary_op) ggml_get_op_params_i32(tensor, 0);
3023}
3024
3025const char * ggml_get_name(const struct ggml_tensor * tensor) {
3026 if (tensor == NULL) return NULL;

Callers 3

ggml_compute_backwardFunction · 0.70
ggml_get_n_tasksFunction · 0.70

Calls 1

ggml_get_op_params_i32Function · 0.70

Tested by

no test coverage detected