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

Method Clear

tensorflow/stream_executor/rocm/rocm_dnn.cc:347–361  ·  view source on GitHub ↗

Need to figure out the right place to call this routine

Source from the content-addressed store, hash-verified

345
346 // Need to figure out the right place to call this routine
347 static void Clear() {
348 absl::MutexLock lock{&cached_plans_mutex};
349
350 for (auto it : cached_plans) {
351 auto status = wrap::miopenDestroyFusionPlan(it.second);
352 if (status != miopenStatusSuccess) {
353 LOG(FATAL) << "call to miopenDestroyFusionPlan failed: "
354 << ToString(status);
355 }
356 }
357
358 cached_plans.clear();
359
360 unsupported_plans.clear();
361 }
362
363 // Is the Fusion plan corresponding to this hash unsupported
364 static bool IsUnsupportedFusionPlan(uint64 hash) {

Callers

nothing calls this directly

Calls 2

ToStringFunction · 0.70
clearMethod · 0.45

Tested by

no test coverage detected