blace.ai
|
#include <types.h>
Public Member Functions | |
ml_core::BlaceHash | hash () |
bool | operator== (const InferenceArgsCollection &other) const |
bool | operator!= (const InferenceArgsCollection &other) const |
Public Attributes | |
ModelInferenceArgs | inference_args |
ml_core::FORWARD_MODE | mode = FORWARD_MODE::SIMPLE |
std::optional< MultisampleInferenceArgs > | multi_args = std::nullopt |
std::optional< SlicedInferenceArgs > | sliced_args = std::nullopt |
A collection of arguments holding all parameters for model inference.
ml_core::BlaceHash blace::ml_core::InferenceArgsCollection::hash | ( | ) |
Hash the struct.
|
inline |
Simple inequality operator.
other | The other struct. |
bool blace::ml_core::InferenceArgsCollection::operator== | ( | const InferenceArgsCollection & | other | ) | const |
Simple equality operator.
other | The other struct. |
ModelInferenceArgs blace::ml_core::InferenceArgsCollection::inference_args |
The basic inference arguments like backend etc.
ml_core::FORWARD_MODE blace::ml_core::InferenceArgsCollection::mode = FORWARD_MODE::SIMPLE |
The mode the inference shall be run in. MULTIPASS will run multiple jittered passes on BCHW tensors and SLICED cuts the inputs in parts to save memory.
std::optional<MultisampleInferenceArgs> blace::ml_core::InferenceArgsCollection::multi_args = std::nullopt |
In case of MULTIPASS hold the arguments here.
std::optional<SlicedInferenceArgs> blace::ml_core::InferenceArgsCollection::sliced_args = std::nullopt |
In case of SLICED hold the arguments here.