MCPcopy Create free account
hub / github.com/RenderKit/oidn / getCachedTensors

Method getCachedTensors

core/subdevice.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 std::shared_ptr<TensorMap> Subdevice::getCachedTensors(const void* key)
29 {
30 std::shared_ptr<TensorMap>& tensorMap = cachedTensors[key];
31 if (!tensorMap)
32 tensorMap = std::make_shared<TensorMap>();
33 return tensorMap;
34 }
35
36OIDN_NAMESPACE_END

Callers 1

initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected