jactorch.data.layout#

Classes

Functions

concat()

pad([fill])

pad2d([fill])

padimage([fill])

skip()

stack()

Class DataLayout

class DataLayout[source]#

Bases: object

__init__(layout=None)[source]#
Parameters:

layout (dict | None)

__new__(**kwargs)#
decl(key, spec)[source]#
Parameters:

Class DataLayoutSpec

class DataLayoutSpec[source]#

Bases: object

__init__(type, **kwargs)[source]#
__new__(**kwargs)#

Class DataLayoutType

class DataLayoutType[source]#

Bases: JacEnum

__new__(value)#
classmethod assert_valid(value)#

Assert if the value is a valid choice.

classmethod choice_names()#

Returns the list of the name of all possible choices.

classmethod choice_objs()#

Returns the list of the object of all possible choices.

classmethod choice_values()#

Returns the list of the value of all possible choices.

classmethod from_string(value)#
Parameters:

value (str | JacEnum)

Return type:

JacEnum

classmethod is_valid(value)#

Check if the value is a valid choice.

classmethod type_name()#

Return the type name of the enum.

CONCAT = 'concat'#
PAD = 'pad'#
PAD2D = 'pad2d'#
PADIMAGE = 'padimage'#
SKIP = 'skip'#
STACK = 'stack'#

Functions

concat()[source]#
pad(fill=0)[source]#
pad2d(fill=0)[source]#
padimage(fill=0)[source]#
skip()[source]#
stack()[source]#