apply_channels_last#

composer.functional.apply_channels_last(model)[source]#

Changes the memory format of the model to torch.channels_last.

This usually yields improved GPU utilization.

Parameters

model (Module) โ€“ The model or module to modify.