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

Method insert

mlx/export.cpp:558–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556 const Args& args,
557 const std::map<std::string, array>& kwargs);
558 void insert(
559 std::vector<std::string> kwarg_keys,
560 std::vector<array> inputs,
561 std::vector<array> outputs,
562 std::vector<array> tape) {
563 auto [it, _] = table.emplace(inputs.size(), std::vector<Function>{});
564 it->second.emplace_back(
565 std::move(kwarg_keys),
566 std::move(inputs),
567 std::move(outputs),
568 std::move(tape));
569 }
570
571 void print_functions(std::ostream& os) {
572 int n = 1;

Callers 15

upsample_nearestFunction · 0.45
mlx_gather_ndFunction · 0.45
mlx_expand_ellipsisFunction · 0.45
mlx_scatter_args_arrayFunction · 0.45
mlx_scatter_args_sliceFunction · 0.45
mlx_scatter_args_ndFunction · 0.45
call_implMethod · 0.45
tree_replaceFunction · 0.45
mlx_load_npz_helperFunction · 0.45
mlx_savez_helperFunction · 0.45
outputsFunction · 0.45
categorical_implFunction · 0.45

Calls 3

emplace_backMethod · 0.80
emplaceMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected