TFModelRunner - TF Compiled model implementation of the MLModelRunner.
More...
#include <TFModelRunner.h>
|
| | TFModelRunner (llvm::StringRef DecisionName, llvm::LLVMContext &Ctx, llvm::StringRef FeedPrefix="feed_", llvm::StringRef FetchPrefix="fetch_") |
| | FeatureNames' type should be an indexed collection of std::string, like std::array or std::vector, that has a size() method.
|
| |
| | TFModelRunner (llvm::StringRef DecisionName, llvm::StringRef FeedPrefix="feed_", llvm::StringRef FetchPrefix="fetch_") |
| |
| virtual | ~TFModelRunner ()=default |
| |
| virtual void | requestExit () override |
| |
| | MLModelRunner (const MLModelRunner &)=delete |
| |
| MLModelRunner & | operator= (const MLModelRunner &)=delete |
| |
| virtual | ~MLModelRunner ()=default |
| |
| template<typename T > |
| std::enable_if< std::is_fundamental< T >::value, T >::type | evaluate () |
| | Main user-facing method for interacting with the ML models.
|
| |
| template<typename T > |
| std::enable_if< std::is_fundamental< typenamestd::remove_pointer< T >::type >::value, void >::type | evaluate (T &data, size_t &dataSize) |
| | Main user-facing method for interacting with the ML models.
|
| |
| Kind | getKind () const |
| |
| SerDesKind | getSerDesKind () const |
| |
| template<typename U , typename T , typename... Types> |
| void | populateFeatures (const std::pair< U, T > &var1, const std::pair< U, Types > &...var2) |
| | User-facing interface for setting the features to be sent to the model.
|
| |
| template<typename U , typename T , typename... Types> |
| void | populateFeatures (const std::pair< U, T > &&var1, const std::pair< U, Types > &&...var2) |
| |
| void | populateFeatures () |
| |
| void | setRequest (void *request) |
| | Mainly used in the case of gRPC where the request object is not known explicitly.
|
| |
| void | setResponse (void *response) |
| | Mainly used in the case of gRPC where the response object is not known explicitly.
|
| |
|
| void * | evaluateUntyped () override |
| | Should be implemented by the derived class to call the model and get the result.
|
| |
template<class TGen>
class MLBridge::TFModelRunner< TGen >
TFModelRunner - TF Compiled model implementation of the MLModelRunner.
It uses an AOT-compiled SavedModel for efficient execution.
Definition at line 30 of file TFModelRunner.h.
◆ TFModelRunner() [1/2]
template<class TGen >
| MLBridge::TFModelRunner< TGen >::TFModelRunner |
( |
llvm::StringRef | DecisionName, |
|
|
llvm::LLVMContext & | Ctx, |
|
|
llvm::StringRef | FeedPrefix = "feed_", |
|
|
llvm::StringRef | FetchPrefix = "fetch_" ) |
|
inline |
FeatureNames' type should be an indexed collection of std::string, like std::array or std::vector, that has a size() method.
Definition at line 34 of file TFModelRunner.h.
◆ TFModelRunner() [2/2]
template<class TGen >
| MLBridge::TFModelRunner< TGen >::TFModelRunner |
( |
llvm::StringRef | DecisionName, |
|
|
llvm::StringRef | FeedPrefix = "feed_", |
|
|
llvm::StringRef | FetchPrefix = "fetch_" ) |
|
inline |
◆ ~TFModelRunner()
◆ classof()
◆ evaluateUntyped()
template<class TGen >
|
|
inlineoverrideprivatevirtual |
◆ requestExit()
◆ CompiledModel
◆ ResultIndex
The documentation for this class was generated from the following file: