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'.

Synopsis

Declared in <llvm/Analysis/NoInferenceModelRunner.h>

class NoInferenceModelRunner
    : public MLModelRunner

Base Classes

Name

Description

MLModelRunner

Interface for evaluating an ML model given tensors as arguments.

Enums

Name

Description

Kind

Kind of concrete MLModelRunner implementation.

Member Functions

Name

Description

NoInferenceModelRunner [constructor]

Construct a no‐op model runner that stores feature values without running.

operator= [deleted]

Deleted copy assignment; MLModelRunner is not assignable.

evaluate

Evaluate the model and return the result cast to type T.

getKind

Return the concrete runner kind of this instance.

getTensor

getTensor overloads

getTensorUntyped

getTensorUntyped overloads

switchContext [virtual]

Switch the evaluation context to the named context Name.

Static Member Functions

Name

Description

classof

Return true if R is a NoInferenceModelRunner.

Protected Member Functions

Name

Description

evaluateUntyped [virtual]

Run the model and return an untyped pointer to the result buffer.

setUpBufferForTensor

Bind input buffer Index to Buffer, or allocate owned storage.

Protected Data Members

Name

Description

Ctx

LLVM context used for diagnostics by this runner.

Type

Concrete kind of this MLModelRunner instance.

Created with MrDocs