mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Remove static initializers (#2059)
* Remove static initializers in device.cpp, load.cpp, pocketfft.h * Remove static initializer InTracing::trace_stack * Remove static initializer of CompilerCache cache * Revert changes in pocketfft.h * Remove duplicate private section of thread_pool()
This commit is contained in:
@@ -101,7 +101,7 @@ class ParallelFileReader : public Reader {
|
||||
|
||||
private:
|
||||
static constexpr size_t batch_size_ = 1 << 25;
|
||||
static ThreadPool thread_pool_;
|
||||
static ThreadPool& thread_pool();
|
||||
int fd_;
|
||||
std::string label_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user