MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / startsWith

Function startsWith

plugins/wasi_nn/MLX/model/utils.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38bool startsWith(std::string const &Value, std::string const &Starting) {
39 if (Starting.size() > Value.size())
40 return false;
41 return std::equal(Starting.begin(), Starting.end(), Value.begin());
42}
43
44void saveWeights(const std::unordered_map<std::string, mx::array> &Weights,
45 const std::string Path) {

Callers 1

llamaToMlxllmFunction · 0.70

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected