13#ifndef RooFit_RooONNXFunction_h
14#define RooFit_RooONNXFunction_h
27 const std::vector<std::vector<int>> &
inputShapes = {});
57 mutable std::shared_ptr<RuntimeCache>
_runtime;
73 any = std::make_any<T>();
74 ptr = std::any_cast<T>(&any);
77 void emplace(std::string
const &typeName);
80template <
class Session_t>
#define ClassDefOverride(name, id)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
Abstract base class for objects that represent a real value and implements functionality common to al...
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooONNXFunction wraps an ONNX model as a RooAbsReal, allowing it to be used as a building block in li...
std::shared_ptr< RuntimeCache > _runtime
! Transient runtime information.
TObject * clone(const char *newName) const override
RooArgList const & inputTensorList(int iTensor) const
std::size_t nInputTensors() const
void initialize() const
Build transient runtime backend on first use.
std::vector< std::unique_ptr< RooListProxy > > _inputTensors
Inputs mapping to flattened input tensors.
std::string outerWrapperName() const
RooONNXFunction()=default
std::string funcName() const
std::vector< std::uint8_t > _onnxBytes
Persisted ONNX model bytes.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
std::vector< float > _inputBuffer
!
void fillInputBuffer() const
Gather current RooFit inputs into a contiguous feature buffer.
Mother of all ROOT objects.
void doInferWithSessionVoidPtr(void *session, float const *input, float *out)