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

Function checked_product

src/framework/runtime/host_ops.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace {
12
13int64_t checked_product(std::initializer_list<int64_t> dims) {
14 int64_t result = 1;
15 for (const int64_t dim : dims) {
16 result *= dim;
17 }
18 return result;
19}
20
21float stable_softmax_pick(const float * row, int64_t vocab_size, float uniform) {
22 float max_value = row[0];

Callers 1

computeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected