MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / keys

Function keys

mlx/data/Sample.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace data {
9namespace sample {
10std::vector<std::string> keys(const Sample& dict) {
11 std::vector<std::string> keys;
12 for (auto& kv : dict) {
13 keys.push_back(kv.first);
14 }
15 return keys;
16}
17
18std::shared_ptr<Array>
19check_key(const Sample& input, const std::string& key, ArrayType type) {

Callers 1

merge_batchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected