mltk.core.TfliteShape

class TfliteShape[source]

Wrapper for tensor shape. This is a tuple of integer values

Properties

flat_size

Total number of elements or flatten size

Methods

__init__

count

Return number of occurrences of value.

index

Return first index of value.

static __new__(cls, shape)[source]
property flat_size: int

Total number of elements or flatten size

Return type:

int

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=sys.maxsize, /)

Return first index of value.

Raises ValueError if the value is not present.