cutcutcodec.core.classes.frame.Frame

class cutcutcodec.core.classes.frame.Frame(data: Tensor | ndarray | Container, context: object = None, **kwargs)[source]

A General Frame.

Attributes

contextobject

Any information to throw during the transformations.

Initialise and create the class.

Parameters

contextobject

Any value to throw between the tensor operations.

dataarraylike

The data to use for this array. Do not copy if it is possible

**kwargsdict

Transmitted to the torch.Tensor initialisator.

abstract check_state() None[source]

Apply verifications.

Raises

AssertionError

If something wrong in this frame.

property shape: tuple[int, ...]

Solve pylint error E1136: Value “self.shape” is unsubscriptable.