Enum OperandCode

Source
#[repr(C)]
pub enum OperandCode {
Show 14 variants ANEURALNETWORKS_FLOAT32 = 0, ANEURALNETWORKS_INT32 = 1, ANEURALNETWORKS_UINT32 = 2, ANEURALNETWORKS_TENSOR_FLOAT32 = 3, ANEURALNETWORKS_TENSOR_INT32 = 4, ANEURALNETWORKS_TENSOR_QUANT8_ASYMM = 5, ANEURALNETWORKS_TENSOR_QUANT8_SYMM_PER_CHANNEL = 6, ANEURALNETWORKS_TENSOR_QUANT8_SYMM = 7, ANEURALNETWORKS_TENSOR_FLOAT16 = 8, ANEURALNETWORKS_TENSOR_BOOL8 = 9, ANEURALNETWORKS_TENSOR_QUANT16_ASYMM = 10, ANEURALNETWORKS_TENSOR_QUANT16_SYMM = 11, ANEURALNETWORKS_TENSOR_QUANT8_ASYMM_SIGNED = 14, ANEURALNETWORKS_MODEL = 15,
}
Expand description

Operand types.

The type of an operand in a model.

Types prefaced with ANEURALNETWORKS_TENSOR_* must be used for tensor data (i.e., tensors with at least one dimension). Types not prefaced by ANEURALNETWORKS_TENSOR_* represent scalar values and must have no dimensions.

Although we define many types, most operators accept just a few types. Most used are {@link ANEURALNETWORKS_TENSOR_FLOAT32}, {@link ANEURALNETWORKS_TENSOR_QUANT8_ASYMM}, and {@link ANEURALNETWORKS_INT32}.

Available since API level 27.

Variants§

§

ANEURALNETWORKS_FLOAT32 = 0

A 32 bit floating point scalar value.

§

ANEURALNETWORKS_INT32 = 1

A signed 32 bit integer scalar value.

§

ANEURALNETWORKS_UINT32 = 2

An unsigned 32 bit integer scalar value.

§

ANEURALNETWORKS_TENSOR_FLOAT32 = 3

A tensor of 32 bit floating point values.

§

ANEURALNETWORKS_TENSOR_INT32 = 4

A tensor of 32 bit signed integers.

§

ANEURALNETWORKS_TENSOR_QUANT8_ASYMM = 5

A tensor of 8 bit unsigned integers.

§

ANEURALNETWORKS_TENSOR_QUANT8_SYMM_PER_CHANNEL = 6

A tensor of 8 bit signed integers.

§

ANEURALNETWORKS_TENSOR_QUANT8_SYMM = 7

A tensor of 8 bit signed integers.

§

ANEURALNETWORKS_TENSOR_FLOAT16 = 8

A tensor of 16 bit floating point values.

§

ANEURALNETWORKS_TENSOR_BOOL8 = 9

A tensor of 8 bit boolean values.

§

ANEURALNETWORKS_TENSOR_QUANT16_ASYMM = 10

A tensor of 16 bit unsigned integers.

§

ANEURALNETWORKS_TENSOR_QUANT16_SYMM = 11

A tensor of 16 bit signed integers.

§

ANEURALNETWORKS_TENSOR_QUANT8_ASYMM_SIGNED = 14

A tensor of 8 bit signed integers.

§

ANEURALNETWORKS_MODEL = 15

A reference to a model.

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> 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, 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.