MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / GetKmapCache

Function GetKmapCache

paddle/phi/core/sparse_coo_tensor.h:271–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269 }
270
271 const KmapCache* GetKmapCache(const std::string& key) const {
272 if (kmaps_ == nullptr) {
273 return nullptr;
274 }
275 const auto& iter = kmaps_->find(key);
276 if (iter == kmaps_->end()) {
277 return nullptr;
278 }
279 return &iter->second;
280 }
281
282 void ClearKmaps() {
283 if (kmaps_ != nullptr) {

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected