24.02.1
|
Stores RawTensor categorised by the image they are created from including name, format and channel. More...
#include <TensorCache.h>
Public Member Functions | |
RawTensor * | find (std::tuple< const std::string &, Format > key) |
Search the cache for a tensor of created from the specified image and format. More... | |
RawTensor * | find (std::tuple< const std::string &, Format, Channel > key) |
Search the cache for a tensor of created from the specified image, format and channel. More... | |
RawTensor & | add (std::tuple< const std::string &, Format > key, RawTensor raw) |
Add the given tensor to the cache. More... | |
RawTensor & | add (std::tuple< const std::string &, Format, Channel > key, RawTensor raw) |
Add the given tensor to the cache. More... | |
Stores RawTensor categorised by the image they are created from including name, format and channel.
Definition at line 42 of file TensorCache.h.
Add the given tensor to the cache.
Can later be found under the given image name and format.
[in] | key | Key under which to store the tensor. Consists of image name and format. |
[in] | raw | Raw tensor to be stored. |
Definition at line 107 of file TensorCache.h.
Add the given tensor to the cache.
Can later be found under the given image name, format and channel.
[in] | key | Key under which to store the tensor. Consists of image name, format and channel. |
[in] | raw | Raw tensor to be stored. |
Definition at line 113 of file TensorCache.h.
Search the cache for a tensor of created from the specified image and format.
[in] | key | Key to look up the tensor. Consists of image name and format. |
Definition at line 95 of file TensorCache.h.
Search the cache for a tensor of created from the specified image, format and channel.
[in] | key | Key to look up the tensor. Consists of image name, format and channel. |
Definition at line 101 of file TensorCache.h.