#[repr(u8)]
pub enum LinearQuantizeBins {
Show 64 variants _1B1 = 1, _1B2 = 2, _1B3 = 3, _1B4 = 4, _1B5 = 5, _1B6 = 6, _1B7 = 7, _1B8 = 8, _1B9 = 9, _1B10 = 10, _1B11 = 11, _1B12 = 12, _1B13 = 13, _1B14 = 14, _1B15 = 15, _1B16 = 16, _1B17 = 17, _1B18 = 18, _1B19 = 19, _1B20 = 20, _1B21 = 21, _1B22 = 22, _1B23 = 23, _1B24 = 24, _1B25 = 25, _1B26 = 26, _1B27 = 27, _1B28 = 28, _1B29 = 29, _1B30 = 30, _1B31 = 31, _1B32 = 32, _1B33 = 33, _1B34 = 34, _1B35 = 35, _1B36 = 36, _1B37 = 37, _1B38 = 38, _1B39 = 39, _1B40 = 40, _1B41 = 41, _1B42 = 42, _1B43 = 43, _1B44 = 44, _1B45 = 45, _1B46 = 46, _1B47 = 47, _1B48 = 48, _1B49 = 49, _1B50 = 50, _1B51 = 51, _1B52 = 52, _1B53 = 53, _1B54 = 54, _1B55 = 55, _1B56 = 56, _1B57 = 57, _1B58 = 58, _1B59 = 59, _1B60 = 60, _1B61 = 61, _1B62 = 62, _1B63 = 63, _1B64 = 64,
}
Expand description

Number of bins for quantization, written in base-2 scientific notation.

The binary #[repr(u8)] value of each variant is equivalent to the binary logarithm of the number of bins, i.e. the binary precision or the number of bits used.

Variants§

§

_1B1 = 1

§

_1B2 = 2

§

_1B3 = 3

§

_1B4 = 4

§

_1B5 = 5

§

_1B6 = 6

§

_1B7 = 7

§

_1B8 = 8

§

_1B9 = 9

§

_1B10 = 10

§

_1B11 = 11

§

_1B12 = 12

§

_1B13 = 13

§

_1B14 = 14

§

_1B15 = 15

§

_1B16 = 16

§

_1B17 = 17

§

_1B18 = 18

§

_1B19 = 19

§

_1B20 = 20

§

_1B21 = 21

§

_1B22 = 22

§

_1B23 = 23

§

_1B24 = 24

§

_1B25 = 25

§

_1B26 = 26

§

_1B27 = 27

§

_1B28 = 28

§

_1B29 = 29

§

_1B30 = 30

§

_1B31 = 31

§

_1B32 = 32

§

_1B33 = 33

§

_1B34 = 34

§

_1B35 = 35

§

_1B36 = 36

§

_1B37 = 37

§

_1B38 = 38

§

_1B39 = 39

§

_1B40 = 40

§

_1B41 = 41

§

_1B42 = 42

§

_1B43 = 43

§

_1B44 = 44

§

_1B45 = 45

§

_1B46 = 46

§

_1B47 = 47

§

_1B48 = 48

§

_1B49 = 49

§

_1B50 = 50

§

_1B51 = 51

§

_1B52 = 52

§

_1B53 = 53

§

_1B54 = 54

§

_1B55 = 55

§

_1B56 = 56

§

_1B57 = 57

§

_1B58 = 58

§

_1B59 = 59

§

_1B60 = 60

§

_1B61 = 61

§

_1B62 = 62

§

_1B63 = 63

§

_1B64 = 64

Trait Implementations§

source§

impl Clone for LinearQuantizeBins

source§

fn clone(&self) -> LinearQuantizeBins

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'de> Deserialize<'de> for LinearQuantizeBins

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl JsonSchema for LinearQuantizeBins

source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
§

fn always_inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
source§

impl Serialize for LinearQuantizeBins

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for LinearQuantizeBins

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,