Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
dipla::Network::State::ConditioningCache Struct Reference

Own the paired encoder and cached denoiser plus their bound tensors. More...

Public Member Functions

 ConditioningCache (const std::string &directory, const std::string &source, const onnx_tensor *inputs, const onnx_tensor *outputs, const onnx_session_options &options)
 Validate the split model contract and open both runtime sessions.
 ~ConditioningCache ()
 Release sessions before their borrowed tensor storage is destroyed.

Public Attributes

onnx_session encoder {}
onnx_session denoiser {}
inference_model encoder_model {}
inference_model denoiser_model {}
std::array< std::vector< float >, ONNX_TENSOR_LIMIT > values

Detailed Description

Own the paired encoder and cached denoiser plus their bound tensors.

Constructor & Destructor Documentation

◆ ConditioningCache()

dipla::Network::State::ConditioningCache::ConditioningCache ( const std::string & directory,
const std::string & source,
const onnx_tensor * inputs,
const onnx_tensor * outputs,
const onnx_session_options & options )
inline

Validate the split model contract and open both runtime sessions.

Parameters
directoryDirectory containing split graphs and their descriptors.
sourceSource graph path used to validate the cache identity.
inputsCanonical model inputs against which the split bindings are checked.
outputsCanonical model outputs against which the split bindings are checked.
optionsRuntime options shared by both sessions.
Exceptions
std::runtime_errorOn identity, binding or runtime initialization failure.

Check that the artifacts belong together before binding shared buffers. Close the encoder explicitly if the second session cannot open.

◆ ~ConditioningCache()

dipla::Network::State::ConditioningCache::~ConditioningCache ( )
inline

Release sessions before their borrowed tensor storage is destroyed.

Member Data Documentation

◆ denoiser

onnx_session dipla::Network::State::ConditioningCache::denoiser {}

◆ denoiser_model

inference_model dipla::Network::State::ConditioningCache::denoiser_model {}

◆ encoder

onnx_session dipla::Network::State::ConditioningCache::encoder {}

◆ encoder_model

inference_model dipla::Network::State::ConditioningCache::encoder_model {}

◆ values

std::array<std::vector<float>, ONNX_TENSOR_LIMIT> dipla::Network::State::ConditioningCache::values

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