Enzyme main
Loading...
Searching...
No Matches
mlir::impulse::HMCContext Struct Reference

#include "MLIR/Interfaces/HMCUtils.h"

Inheritance diagram for mlir::impulse::HMCContext:
Collaboration diagram for mlir::impulse::HMCContext:

Public Member Functions

 HMCContext (FlatSymbolRefAttr fn, ArrayRef< Value > fnInputs, ArrayRef< Type > fnResultTypes, Value originalTrace, ArrayAttr selection, ArrayAttr allAddresses, Value invMass, Value massMatrixSqrt, Value stepSize, Value trajectoryLength, int64_t positionSize, ArrayRef< SupportInfo > supports, DictionaryAttr autodiffAttrs={})
 
 HMCContext (FlatSymbolRefAttr logpdfFn, ArrayRef< Value > fnInputs, Value invMass, Value massMatrixSqrt, Value stepSize, Value trajectoryLength, int64_t positionSize, DictionaryAttr autodiffAttrs={})
 
bool hasCustomLogpdf () const
 
int64_t getFullTraceSize () const
 
Type getElementType () const
 
RankedTensorType getPositionType () const
 
RankedTensorType getScalarType () const
 
bool hasConstrainedSupports () const
 
HMCContext withStepSize (Value newStepSize) const
 

Public Attributes

FlatSymbolRefAttr fn
 
ArrayRef< Value > fnInputs
 
SmallVector< Type > fnResultTypes
 
Value originalTrace
 
ArrayAttr selection
 
ArrayAttr allAddresses
 
Value invMass
 
Value massMatrixSqrt
 
Value stepSize
 
Value trajectoryLength
 
int64_t positionSize
 
SmallVector< SupportInfosupports
 
FlatSymbolRefAttr logpdfFn
 
DictionaryAttr autodiffAttrs
 

Detailed Description

Definition at line 98 of file HMCUtils.h.

Constructor & Destructor Documentation

◆ HMCContext() [1/2]

mlir::impulse::HMCContext::HMCContext ( FlatSymbolRefAttr fn,
ArrayRef< Value > fnInputs,
ArrayRef< Type > fnResultTypes,
Value originalTrace,
ArrayAttr selection,
ArrayAttr allAddresses,
Value invMass,
Value massMatrixSqrt,
Value stepSize,
Value trajectoryLength,
int64_t positionSize,
ArrayRef< SupportInfo > supports,
DictionaryAttr autodiffAttrs = {} )
inline

Definition at line 114 of file HMCUtils.h.

◆ HMCContext() [2/2]

mlir::impulse::HMCContext::HMCContext ( FlatSymbolRefAttr logpdfFn,
ArrayRef< Value > fnInputs,
Value invMass,
Value massMatrixSqrt,
Value stepSize,
Value trajectoryLength,
int64_t positionSize,
DictionaryAttr autodiffAttrs = {} )
inline

Definition at line 129 of file HMCUtils.h.

Member Function Documentation

◆ getElementType()

◆ getFullTraceSize()

int64_t mlir::impulse::HMCContext::getFullTraceSize ( ) const
inline

◆ getPositionType()

◆ getScalarType()

◆ hasConstrainedSupports()

bool mlir::impulse::HMCContext::hasConstrainedSupports ( ) const
inline

Definition at line 157 of file HMCUtils.h.

References supports.

◆ hasCustomLogpdf()

bool mlir::impulse::HMCContext::hasCustomLogpdf ( ) const
inline

◆ withStepSize()

HMCContext mlir::impulse::HMCContext::withStepSize ( Value newStepSize) const
inline

Definition at line 165 of file HMCUtils.h.

References stepSize.

Referenced by mlir::impulse::SampleHMC().

Member Data Documentation

◆ allAddresses

ArrayAttr mlir::impulse::HMCContext::allAddresses

◆ autodiffAttrs

DictionaryAttr mlir::impulse::HMCContext::autodiffAttrs

◆ fn

FlatSymbolRefAttr mlir::impulse::HMCContext::fn

◆ fnInputs

ArrayRef<Value> mlir::impulse::HMCContext::fnInputs

◆ fnResultTypes

SmallVector<Type> mlir::impulse::HMCContext::fnResultTypes

◆ invMass

◆ logpdfFn

FlatSymbolRefAttr mlir::impulse::HMCContext::logpdfFn

◆ massMatrixSqrt

Value mlir::impulse::HMCContext::massMatrixSqrt

Definition at line 106 of file HMCUtils.h.

Referenced by mlir::impulse::SampleHMC(), and mlir::impulse::SampleNUTS().

◆ originalTrace

Value mlir::impulse::HMCContext::originalTrace

◆ positionSize

◆ selection

ArrayAttr mlir::impulse::HMCContext::selection

Definition at line 103 of file HMCUtils.h.

◆ stepSize

◆ supports

◆ trajectoryLength

Value mlir::impulse::HMCContext::trajectoryLength

Definition at line 108 of file HMCUtils.h.

Referenced by mlir::impulse::SampleHMC().


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