neon.data.dataloader_transformers.DumpImage

class neon.data.dataloader_transformers.DumpImage(dataloader, index, image_index, outshape, output_directory=None, *args, **kwargs)[source]

Bases: neon.data.dataloader_transformers.DataLoaderTransformer

__init__(dataloader, index, image_index, outshape, output_directory=None, *args, **kwargs)[source]

dump image number image_index in data index to a random file in output_directory.

Methods

__init__(dataloader, index, image_index, …) dump image number image_index in data index to a random
filename() generate random filename
gen_class(pdict)
get_description([skip]) Returns a dict that contains all necessary information needed to serialize this object.
recursive_gen(pdict, key) helper method to check whether the definition
transform(t)
be = None
classnm

Returns the class name.

filename()[source]

generate random filename

gen_class(pdict)
get_description(skip=[], **kwargs)

Returns a dict that contains all necessary information needed to serialize this object.

Parameters:skip (list) – Objects to omit from the dictionary.
Returns:Dictionary format for object information.
Return type:(dict)
modulenm

Returns the full module path.

recursive_gen(pdict, key)

helper method to check whether the definition dictionary is defining a NervanaObject child, if so it will instantiate that object and replace the dictionary element with an instance of that object

transform(t)[source]