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

Method restore

mlx/data/core/ThreadController.cpp:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void ThreadController::restore(const ThreadControllerState& state) {
118 for (auto i = 0; i < symbols_.size(); i++) {
119 auto symbol = symbols_[i];
120 reinterpret_cast<void (*)(int)>(symbol->set_sym)(state[i]);
121 }
122}
123} // namespace core
124} // namespace data
125} // namespace mlx

Callers 1

ThreadPoolMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected