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

Method ~CommandEncoder

mlx/backend/metal/device.cpp:281–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281CommandEncoder::~CommandEncoder() {
282 exiting_ = true;
283 synchronize();
284 auto pool = new_scoped_memory_pool();
285 buffer_.reset();
286 queue_.reset();
287}
288
289void CommandEncoder::set_buffer(
290 const MTL::Buffer* buf,

Callers

nothing calls this directly

Calls 3

new_scoped_memory_poolFunction · 0.85
synchronizeFunction · 0.70
resetMethod · 0.45

Tested by

no test coverage detected