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

Function ggml_webgpu_tensor_buf

external/ggml/src/ggml-webgpu/ggml-webgpu.cpp:376–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376static wgpu::Buffer ggml_webgpu_tensor_buf(const ggml_tensor * tensor) {
377 ggml_backend_webgpu_buffer_context * ctx = (ggml_backend_webgpu_buffer_context *) tensor->buffer->context;
378 return ctx->buffer;
379}
380
381static size_t ggml_webgpu_tensor_misalignment(webgpu_context & ctx, const ggml_tensor * t) {
382 size_t offset = ggml_webgpu_tensor_offset(t);

Callers 9

ggml_webgpu_ssm_scanFunction · 0.85
ggml_webgpu_mul_mat_idFunction · 0.85
ggml_webgpu_flash_attnFunction · 0.85
ggml_webgpu_binary_opFunction · 0.85
ggml_webgpu_rms_norm_mulFunction · 0.85
ggml_webgpu_soft_maxFunction · 0.85
ggml_webgpu_argsortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected