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

Method optional_f32

src/framework/assets/tensor_source.cpp:380–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378 return tensor;
379 }
380
381 void set_backend_tensor(
382 ggml_tensor * tensor,
383 std::string_view name,
384 TensorStorageType storage_type,
385 const std::vector<int64_t> & expected_shape) const override {
386 const auto * info = find_info(name);
387 if (info == nullptr) {
388 throw std::runtime_error("missing tensor: " + std::string(name));
389 }
390 validate_expected_shape(name, info->shape, expected_shape);

Callers

nothing calls this directly

Calls 1

require_f32Function · 0.85

Tested by

no test coverage detected