<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/retrieval/universal_embedder.py#L36-L43) |

Activation data type for model execution.

```python
mp.tasks.retrieval.ActivationDataType(
    value
)
```

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `denominator` | the denominator of a rational number in lowest terms |
| `imag` | the imaginary part of a complex number |
| `numerator` | the numerator of a rational number in lowest terms |
| `real` | the real part of a complex number |

<br />

## Methods

### `as_integer_ratio`

```python
as_integer_ratio()
```

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

```python
>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
```

### `bit_count`

```python
bit_count()
```

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

```python
>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
```

### `bit_length`

```python
bit_length()
```

Number of bits necessary to represent self in binary.

```python
>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
```

### `conjugate`

```python
conjugate()
```

Returns self, the complex conjugate of any int.

### `from_bytes`

```python
from_bytes(
    byteorder='big', *, signed=False
)
```

Return the integer represented by the given array of bytes.

bytes
Holds the array of bytes to convert. The argument must either
support the buffer protocol or be an iterable object producing
bytes. Bytes and bytearray are examples of built-in objects that
support the buffer protocol.
byteorder
The byte order used to represent the integer. If byteorder is
'big', the most significant byte is at the beginning of the byte
array. If byteorder is 'little', the most significant byte is at
the end of the byte array. To request the native byte order of
the host system, use sys.byteorder as the byte order value.
Default is to use 'big'.
signed
Indicates whether two's complement is used to represent the
integer.

### `is_integer`

```python
is_integer()
```

Returns True. Exists for duck type compatibility with float.is_integer.

### `to_bytes`

```python
to_bytes(
    length=1, byteorder='big', *, signed=False
)
```

Return an array of bytes representing an integer.

length
Length of bytes object to use. An OverflowError is raised if
the integer is not representable with the given number of bytes.
Default is length 1.
byteorder
The byte order used to represent the integer. If byteorder is
'big', the most significant byte is at the beginning of the byte
array. If byteorder is 'little', the most significant byte is at
the end of the byte array. To request the native byte order of
the host system, use sys.byteorder as the byte order value.
Default is to use 'big'.
signed
Determines whether two's complement is used to represent the
integer. If signed is False and a negative integer is given,
an OverflowError is raised.

### `__abs__`

```python
__abs__()
```

abs(self)

### `__add__`

```python
__add__(
    value, /
)
```

Return self+value.

### `__and__`

```python
__and__(
    value, /
)
```

Return self\&value.

### `__bool__`

```python
__bool__()
```

True if self else False

### `__eq__`

```python
__eq__(
    value, /
)
```

Return self==value.

### `__floordiv__`

```python
__floordiv__(
    value, /
)
```

Return self//value.

### `__ge__`

```python
__ge__(
    value, /
)
```

Return self\>=value.

### `__gt__`

```python
__gt__(
    value, /
)
```

Return self\>value.

### `__invert__`

```python
__invert__()
```

\~self

### `__le__`

```python
__le__(
    value, /
)
```

Return self\<=value.

### `__lshift__`

```python
__lshift__(
    value, /
)
```

Return self\<\<value.

### `__lt__`

```python
__lt__(
    value, /
)
```

Return self\<value.

### `__mod__`

```python
__mod__(
    value, /
)
```

Return self%value.

### `__mul__`

```python
__mul__(
    value, /
)
```

Return self\*value.

### `__ne__`

```python
__ne__(
    value, /
)
```

Return self!=value.

### `__neg__`

```python
__neg__()
```

-self

### `__or__`

```python
__or__(
    value, /
)
```

Return self\|value.

### `__pos__`

```python
__pos__()
```

+self

### `__pow__`

```python
__pow__(
    value, mod, /
)
```

Return pow(self, value, mod).

### `__radd__`

```python
__radd__(
    value, /
)
```

Return value+self.

### `__rand__`

```python
__rand__(
    value, /
)
```

Return value\&self.

### `__rfloordiv__`

```python
__rfloordiv__(
    value, /
)
```

Return value//self.

### `__rlshift__`

```python
__rlshift__(
    value, /
)
```

Return value\<\<self.

### `__rmod__`

```python
__rmod__(
    value, /
)
```

Return value%self.

### `__rmul__`

```python
__rmul__(
    value, /
)
```

Return value\*self.

### `__ror__`

```python
__ror__(
    value, /
)
```

Return value\|self.

### `__rpow__`

```python
__rpow__(
    value, mod, /
)
```

Return pow(value, self, mod).

### `__rrshift__`

```python
__rrshift__(
    value, /
)
```

Return value\>\>self.

### `__rshift__`

```python
__rshift__(
    value, /
)
```

Return self\>\>value.

### `__rsub__`

```python
__rsub__(
    value, /
)
```

Return value-self.

### `__rtruediv__`

```python
__rtruediv__(
    value, /
)
```

Return value/self.

### `__rxor__`

```python
__rxor__(
    value, /
)
```

Return value\^self.

### `__sub__`

```python
__sub__(
    value, /
)
```

Return self-value.

### `__truediv__`

```python
__truediv__(
    value, /
)
```

Return self/value.

### `__xor__`

```python
__xor__(
    value, /
)
```

Return self\^value.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| DEFAULT | `<ActivationDataType.DEFAULT: 0>` |
| FLOAT16 | `<ActivationDataType.FLOAT16: 2>` |
| FLOAT32 | `<ActivationDataType.FLOAT32: 1>` |
| INT16 | `<ActivationDataType.INT16: 3>` |
| INT8 | `<ActivationDataType.INT8: 4>` |

<br />