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

Method PrimitiveFactory

mlx/export.cpp:453–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451 std::unordered_map<int, Stream> stream_map;
452
453 PrimitiveFactory() {
454 for (auto& [n, f] : factory) {
455 for (auto& k : f.keys) {
456 name_remap[k] = n;
457 }
458 }
459 }
460
461 void save(Writer& os, const std::shared_ptr<Primitive>& p) {
462 serialize(os, p->stream());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected