Loading...
Searching...
No Matches
Own the paired encoder and cached denoiser plus their bound tensors.
More...
|
| | 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.
|
Own the paired encoder and cached denoiser plus their bound tensors.
◆ 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
-
| directory | Directory containing split graphs and their descriptors. |
| source | Source graph path used to validate the cache identity. |
| inputs | Canonical model inputs against which the split bindings are checked. |
| outputs | Canonical model outputs against which the split bindings are checked. |
| options | Runtime options shared by both sessions. |
- Exceptions
-
| std::runtime_error | On 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.
◆ 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: