LLVM 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::NoInferenceModelRunner Class Reference

A pseudo model runner. More...

#include "llvm/Analysis/NoInferenceModelRunner.h"

Inheritance diagram for llvm::NoInferenceModelRunner:
Inheritance graph

Public Member Functions

 NoInferenceModelRunner (LLVMContext &Ctx, const std::vector< TensorSpec > &Inputs)
- Public Member Functions inherited from llvm::MLModelRunner
 MLModelRunner (const MLModelRunner &)=delete
MLModelRunneroperator= (const MLModelRunner &)=delete
virtual ~MLModelRunner ()=default
template<typename T >
T evaluate ()
template<typename T , typename I >
TgetTensor (I FeatureID)
template<typename T , typename I >
const TgetTensor (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 ,
- Protected Member Functions inherited from llvm::MLModelRunner
 MLModelRunner (LLVMContext &Ctx, Kind Type, size_t NrInputs)
virtual void * evaluateUntyped ()=0
void setUpBufferForTensor (size_t Index, const TensorSpec &Spec, void *Buffer)
- Protected Attributes inherited from llvm::MLModelRunner
const Kind Type

Detailed Description

A pseudo model runner.

We use it to store feature values when collecting logs for the default policy, in 'development' mode, but never ask it to 'run'.

Definition at line 20 of file NoInferenceModelRunner.h.

Constructor & Destructor Documentation

◆ NoInferenceModelRunner()

NoInferenceModelRunner::NoInferenceModelRunner ( LLVMContext Ctx,
const std::vector< TensorSpec > &  Inputs 

Member Function Documentation

◆ classof()

static bool llvm::NoInferenceModelRunner::classof ( const MLModelRunner R)

Definition at line 25 of file NoInferenceModelRunner.h.

References llvm::MLModelRunner::NoOp.

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