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

Function has_backend_addressable_layout

src/framework/core/module.cpp:193–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool has_backend_addressable_layout(const ggml_tensor * tensor) noexcept {
194 return tensor != nullptr &&
195 ggml_is_contiguous(tensor) &&
196 tensor->view_offs == 0;
197}
198
199TensorValue ensure_backend_addressable_layout(ModuleBuildContext & ctx, const TensorValue & value) {
200 if (!value.valid()) {

Calls 1

ggml_is_contiguousFunction · 0.85

Tested by

no test coverage detected