MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetThreadPoolDevice

Function GetThreadPoolDevice

tensorflow/lite/kernels/eigen_support.cc:175–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175const Eigen::ThreadPoolDevice* GetThreadPoolDevice(TfLiteContext* context) {
176 auto* ptr = GetEigenContext(context);
177 if (ptr == nullptr) {
178 TF_LITE_FATAL(
179 "Call to GetFromContext() not preceded by IncrementUsageCounter()");
180 }
181 return ptr->thread_pool_holder->GetThreadPoolDevice();
182}
183
184} // namespace eigen_support
185} // namespace tflite

Callers 2

EvalFloatFunction · 0.85
TESTFunction · 0.85

Calls 2

GetEigenContextFunction · 0.85
GetThreadPoolDeviceMethod · 0.80

Tested by 1

TESTFunction · 0.68