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

Method find

mlx/export.cpp:655–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655FunctionTable::Function* FunctionTable::find(
656 const Args& args,
657 const std::map<std::string, array>& kwargs) {
658 auto n_inputs = args.size() + kwargs.size();
659 auto it = table.find(n_inputs);
660 if (it == table.end()) {
661 return nullptr;
662 }
663
664 for (auto& fun : it->second) {
665 if (match(args, kwargs, fun)) {
666 return &fun;
667 }
668 }
669
670 return nullptr;
671}
672
673FunctionExporter::FunctionExporter(
674 const std::string& file,

Callers 15

py_value_and_gradFunction · 0.45
tree_replaceFunction · 0.45
test_longer_pathsMethod · 0.45
enqueueMethod · 0.45
eval_implFunction · 0.45
vjpFunction · 0.45
jvpFunction · 0.45
vmap_replaceFunction · 0.45
saveMethod · 0.45
resolve_streamMethod · 0.45
loadMethod · 0.45

Calls 2

sizeMethod · 0.45
endMethod · 0.45

Tested by 2

test_longer_pathsMethod · 0.36
count_graph_nodesFunction · 0.36