deeplay.decorators Module#

Functions#

after_build(func)

Decorator for methods that will be run after build instead of immediately.

after_init(func)

Decorator for methods that will be run after init _and_ immediately.

before_build(func)

Decorator for methods that will be run before build instead of immediately.

stateful(func)

Decorator for methods modify the object state.

wraps(wrapped[, assigned, updated])

Decorator factory to apply update_wrapper() to a wrapper function

Classes#

Callback(func, *args, **kwargs)

A deepcopy safe callback.