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,
301 std::string returnstring =
"";
302 for (
int temp = 0; temp < 4; temp++)
303 returnstring += std::to_string(hash[temp]) +
"\n";
363 MODEL_OFFLOADING_STRATEGY::FULL_UNLOAD;
397 return !(*
this == other);
464 return !(*
this == other);
515 return !(*
this == other);
537 std::optional<MultisampleInferenceArgs>
multi_args = std::nullopt;
565 return !(*
this == other);
574 using std::string::string;
600 ModelFileNotPresent = 6,
601 Error_Inference_OOM = 7,
603 Error_IPC_Timeout = 8
ml_core::FORWARD_MODE mode
Definition types.h:533
bool operator!=(const InferenceArgsCollection &other) const
Definition types.h:564
ModelInferenceArgs inference_args
Definition types.h:527
ml_core::BlaceHash hash()
bool operator==(const InferenceArgsCollection &other) const
std::optional< SlicedInferenceArgs > sliced_args
Definition types.h:541
std::optional< MultisampleInferenceArgs > multi_args
Definition types.h:537
ModelIdent(const std::string &str)
Definition types.h:581
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:300
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:353
bool operator==(const ModelInferenceArgs &other) const
int seed
Definition types.h:348
int experimental_torchscript_autocast
Definition types.h:373
int empty_cache_after_inference
Definition types.h:368
int deprecated
Definition types.h:344
ml_core::BlaceHash hash()
MODEL_OFFLOADING_STRATEGY model_offloading_strategy
Definition types.h:362
std::vector< Backend > backends
Definition types.h:340
int plot_inputs
Definition types.h:357
bool operator!=(const ModelInferenceArgs &other) const
Definition types.h:396
bool operator==(const MultisampleInferenceArgs &other) const
int parallel
Definition types.h:408
int result_to_input_num
Definition types.h:436
int samples
Definition types.h:412
int allow_mirroring
Definition types.h:416
int max_extension
Definition types.h:428
Interpolation jitter_interpolation
Definition types.h:420
bool operator!=(const MultisampleInferenceArgs &other) const
Definition types.h:463
int jitter_keep_size
Definition types.h:424
ml_core::BlaceHash hash()
int result_to_input_denum
Definition types.h:440
PADDING_MODE padding_mode
Definition types.h:432
int slices
Definition types.h:479
int result_to_input_num
Definition types.h:487
int parallel
Definition types.h:475
int result_to_input_denum
Definition types.h:491
bool operator!=(const SlicedInferenceArgs &other) const
Definition types.h:514
int overlap
Definition types.h:483
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:589
Backend
Definition types.h:194
Framework
Definition types.h:210
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