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

Function logical_axis_to_ggml_axis

src/framework/core/module.cpp:137–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137int logical_axis_to_ggml_axis(size_t rank, int logical_axis) {
138 if (logical_axis < 0 || logical_axis >= static_cast<int>(rank)) {
139 throw std::runtime_error("Logical axis out of range");
140 }
141 return static_cast<int>(rank) - 1 - logical_axis;
142}
143
144TensorValue wrap_tensor(ggml_tensor * tensor, const TensorShape & shape, ggml_type type) {
145 if (tensor == nullptr) {

Callers 15

buildMethod · 0.85
concat_along_axisFunction · 0.85
permute_tensorFunction · 0.85
transpose_last_twoFunction · 0.85
permute_tensorFunction · 0.85
pad_axisFunction · 0.85
permute_tensorFunction · 0.85
slice_axisFunction · 0.85
concat_axisFunction · 0.85
pad_axisFunction · 0.85
graph_pad2dFunction · 0.85
graph_transposeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected