blace.ai
Loading...
Searching...
No Matches
blace::RawMemoryFetcher Class Referenceabstract

#include <raw_memory_fetcher.h>

Public Member Functions

virtual std::pair< ml_core::ReturnCode, std::shared_ptr< RawMemoryObject > > get_raw_memory_object ()=0
 
virtual std::shared_ptr< RawMemoryMetadata > get_raw_memory_metadata ()=0
 
virtual std::string printableString ()=0
 

Detailed Description

Interface class to create on object which will provide a RawMemoryObject upon request.

Member Function Documentation

◆ get_raw_memory_metadata()

virtual std::shared_ptr< RawMemoryMetadata > blace::RawMemoryFetcher::get_raw_memory_metadata ( )
pure virtual

Return the meta data associated with the RawMemoryObject. Will be called during graph construction.

Returns

◆ get_raw_memory_object()

virtual std::pair< ml_core::ReturnCode, std::shared_ptr< RawMemoryObject > > blace::RawMemoryFetcher::get_raw_memory_object ( )
pure virtual

Returns a pair of error code and shared pointer of a RawMemoryObject. If the returned code is not blace::ml_core::ReturnCode::OK, the pointer can be null. If return code is blace::ml_core::ReturnCode::OK the returned pointer has to hold a valid object. Might be called during graph evaluation, but caching might prevent a call to this at all.

Returns

◆ printableString()

virtual std::string blace::RawMemoryFetcher::printableString ( )
pure virtual

Return an additional string used in debug logging.

Returns