3#include "library_defines.h"
41enum DeviceEnum :
int { CPU = 0, CUDA = 1, MPS = 2, DML = 3 };
50 UNKNOWN_VALUE_RANGE = 3,
94 BOUNDING_BOX_WITH_DIMS = 19,
98 BAUDIO_MONO_44100HZ = 23
110 ARBITRARY_CHANNELS = 4,
195 TORCHSCRIPT_CUDA_FP32,
196 TORCHSCRIPT_CUDA_FP16,
197 TORCHSCRIPT_MPS_FP32,
201 TORCHSCRIPT_MPS_FP16,
202 TORCHSCRIPT_CPU_FP32,
205 TORCHSCRIPT_CPU_FP16,
303 std::string returnstring =
"";
304 for (
int temp = 0; temp < 4; temp++)
305 returnstring += std::to_string(hash[temp]) +
"\n";
365 MODEL_OFFLOADING_STRATEGY::FULL_UNLOAD;
399 return !(*
this == other);
466 return !(*
this == other);
517 return !(*
this == other);
539 std::optional<MultisampleInferenceArgs>
multi_args = std::nullopt;
567 return !(*
this == other);
576 using std::string::string;
602 ModelFileNotPresent = 6,
603 Error_Inference_OOM = 7,
605 Error_IPC_Timeout = 8,
606 Error_NoSupportedBackend =
ml_core::FORWARD_MODE mode
Definition types.h:535
bool operator!=(const InferenceArgsCollection &other) const
Definition types.h:566
ModelInferenceArgs inference_args
Definition types.h:529
ml_core::BlaceHash hash()
bool operator==(const InferenceArgsCollection &other) const
std::optional< SlicedInferenceArgs > sliced_args
Definition types.h:543
std::optional< MultisampleInferenceArgs > multi_args
Definition types.h:539
ModelIdent(const std::string &str)
Definition types.h:583
BlaceHash(int64_t a, int64_t b, int64_t c, int64_t d)
static void mix_hash_into_hash(BlaceHash &hash, BlaceHash data)
friend std::ostream & operator<<(std::ostream &os, const BlaceHash &obj)
bool operator<(const BlaceHash &rhs) const
static void mix_string_into_hash(BlaceHash &hash, std::string str)
BlaceHash(std::string str)
std::string to_hex(int len=8)
static void mix_float_into_hash(BlaceHash &hash, float data)
bool operator==(const BlaceHash &rhs) const
std::string print()
Definition types.h:302
bool operator!=(const BlaceHash &rhs) const
bool operator==(const LAB_NORMS &other) const
double l_cent
Definition types.h:139
double ab_norm
Definition types.h:143
double l_norm
Definition types.h:135
int run_threaded
Definition types.h:355
bool operator==(const ModelInferenceArgs &other) const
int seed
Definition types.h:350
int experimental_torchscript_autocast
Definition types.h:375
int empty_cache_after_inference
Definition types.h:370
int deprecated
Definition types.h:346
ml_core::BlaceHash hash()
MODEL_OFFLOADING_STRATEGY model_offloading_strategy
Definition types.h:364
std::vector< Backend > backends
Definition types.h:342
int plot_inputs
Definition types.h:359
bool operator!=(const ModelInferenceArgs &other) const
Definition types.h:398
bool operator==(const MultisampleInferenceArgs &other) const
int parallel
Definition types.h:410
int result_to_input_num
Definition types.h:438
int samples
Definition types.h:414
int allow_mirroring
Definition types.h:418
int max_extension
Definition types.h:430
Interpolation jitter_interpolation
Definition types.h:422
bool operator!=(const MultisampleInferenceArgs &other) const
Definition types.h:465
int jitter_keep_size
Definition types.h:426
ml_core::BlaceHash hash()
int result_to_input_denum
Definition types.h:442
PADDING_MODE padding_mode
Definition types.h:434
int slices
Definition types.h:481
int result_to_input_num
Definition types.h:489
int parallel
Definition types.h:477
int result_to_input_denum
Definition types.h:493
bool operator!=(const SlicedInferenceArgs &other) const
Definition types.h:516
int overlap
Definition types.h:485
bool operator==(const SlicedInferenceArgs &other) const
ml_core::BlaceHash hash()
DIRECTION
Definition types.h:188
constexpr float BYTE_MAX_FLOAT
Definition types.h:34
FORWARD_MODE
Definition types.h:157
std::vector< int64_t > TensorSizes
Definition types.h:21
DataTypeEnum
Definition types.h:59
ReturnCode
Definition types.h:591
Backend
Definition types.h:194
Framework
Definition types.h:212
MODEL_OFFLOADING_STRATEGY
Definition types.h:183
PADDING_MODE
Definition types.h:175
constexpr float SHORT_MAX
Definition types.h:30
Interpolation
Definition types.h:162
OrderEnum
Definition types.h:74
constexpr int BYTE_MAX
Definition types.h:26
ColorFormatEnum
Definition types.h:105
DeviceEnum
Definition types.h:41
ModelDataType
Definition types.h:126
ValueRangeEnum
Definition types.h:46