LLVM 24.0.0git
llvm::ReleaseModeModelRunner< TGen > Class Template Referencefinal

#include "llvm/Analysis/ReleaseModeModelRunner.h"

Inheritance diagram for llvm::ReleaseModeModelRunner< TGen >:
[legend]

Public Member Functions

template<class FType>
 ReleaseModeModelRunner (LLVMContext &Ctx, const FType &InputSpec, StringRef DecisionName, const EmbeddedModelRunnerOptions &Options={})
 FeatureNames' type should be an indexed collection of std::string, like std::array or std::vector, that has a size() method.
 ~ReleaseModeModelRunner () override=default
bool isValid () const
 Whether every requested TensorSpec matched the shape the compiled model was built for.
Public Member Functions inherited from llvm::MLModelRunner
 MLModelRunner (const MLModelRunner &)=delete
MLModelRunner & operator= (const MLModelRunner &)=delete
virtual ~MLModelRunner ()=default
template<typename T>
T evaluate ()
template<typename T, typename I>
T * getTensor (I FeatureID)
template<typename T, typename I>
const T * getTensor (I FeatureID) const
void * getTensorUntyped (size_t Index)
const void * getTensorUntyped (size_t Index) const
Kind getKind () const
virtual void switchContext (StringRef Name)

Static Public Member Functions

static bool classof (const MLModelRunner *R)

Additional Inherited Members

Public Types inherited from llvm::MLModelRunner
enum class  Kind : int {
  Unknown , Release , Development , NoOp ,
  Interactive
}
Protected Member Functions inherited from llvm::MLModelRunner
 MLModelRunner (LLVMContext &Ctx, Kind Type, size_t NumInputs)
void setUpBufferForTensor (size_t Index, const TensorSpec &Spec, void *Buffer)
Protected Attributes inherited from llvm::MLModelRunner
LLVMContext & Ctx
const Kind Type

Detailed Description

template<class TGen>
class llvm::ReleaseModeModelRunner< TGen >

Definition at line 55 of file ReleaseModeModelRunner.h.

Constructor & Destructor Documentation

◆ ReleaseModeModelRunner()

template<class TGen>
template<class FType>
llvm::ReleaseModeModelRunner< TGen >::ReleaseModeModelRunner ( LLVMContext & Ctx,
const FType & InputSpec,
StringRef DecisionName,
const EmbeddedModelRunnerOptions & Options = {} )
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 60 of file ReleaseModeModelRunner.h.

References llvm::MLModelRunner::Ctx, llvm::DecisionName, and Options.

◆ ~ReleaseModeModelRunner()

template<class TGen>
llvm::ReleaseModeModelRunner< TGen >::~ReleaseModeModelRunner ( )
overridedefault

Member Function Documentation

◆ classof()

template<class TGen>
bool llvm::ReleaseModeModelRunner< TGen >::classof ( const MLModelRunner * R)
inlinestatic

◆ isValid()

template<class TGen>
bool llvm::ReleaseModeModelRunner< TGen >::isValid ( ) const
inline

Whether every requested TensorSpec matched the shape the compiled model was built for.

If false, the caller is expected to fall back.

Definition at line 113 of file ReleaseModeModelRunner.h.


The documentation for this class was generated from the following file: