.FastAIPropagateWrapper

abstract type defined in module FastAI


			abstract type PropagateWrapper

Defines the default propagation behavior of a WrapperBlock when an encoding is applied to it.

Propagation refers to what happens when an encoding is applied to a WrapperBlock. If no encode method is defined for a wrapper block wrapper, encode is instead called on the wrapped block. Propagating the wrapper block means that the block resulting from encoding the wrapped block is rewrapped in wrapper..


			wrapper = Wrapper(block)
# propagate
encodedblock(enc, wrapper) = Wrapper(encodedblock(enc, wrapped(wrapper)))

# don't propagate
encodedblock(enc, wrapper) = encodedblock(enc, wrapped(wrapper))

The following wrapping behaviors exist:

  • PropagateAlways: Always propagate. This is the default behavior.

  • PropagateNever: Never propagate

  • PropagateSameBlock: Only propagate if the wrapped block is unchanged by the encoding

Methods

There are 2 methods for FastAI.PropagateWrapper: