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

Method require_f32

include/engine/framework/assets/tensor_source.h:72–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 const std::optional<std::vector<int64_t>> & expected_shape = std::nullopt) const = 0;
71 [[nodiscard]] virtual std::optional<std::vector<float>> optional_f32(
72 std::string_view name,
73 const std::optional<std::vector<int64_t>> & expected_shape = std::nullopt) const = 0;
74 [[nodiscard]] std::vector<float> require_f32(
75 std::string_view name,
76 std::initializer_list<int64_t> expected_shape) const {
77 return require_f32(name, std::optional<std::vector<int64_t>>(std::vector<int64_t>(expected_shape)));
78 }
79 [[nodiscard]] std::optional<std::vector<float>> optional_f32(

Callers 1

Calls 1

require_f32Function · 0.85

Tested by

no test coverage detected