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

Function to_ggml_dims

src/framework/core/module.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace engine::core {
8
9std::array<int64_t, kMaxTensorRank> to_ggml_dims(const TensorShape & shape) {
10 std::array<int64_t, kMaxTensorRank> ggml_dims = {1, 1, 1, 1};
11 for (size_t i = 0; i < shape.rank; ++i) {
12 ggml_dims[i] = shape.dims[shape.rank - 1 - i];
13 }
14 return ggml_dims;
15}
16
17namespace {
18

Callers 12

make_view_with_shapeFunction · 0.85
buildMethod · 0.85
make_view_with_shapeFunction · 0.85
repeat_to_shapeFunction · 0.85
strided_view_4dFunction · 0.85
make_tensorFunction · 0.85
wrap_tensorFunction · 0.85
reshape_tensorFunction · 0.85
make_tensorMethod · 0.85
make_backend_tensorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected