class_docstr: Channels last training using PyTorch's Channels Last Memory Format (beta)
code: def before_fit(self):
      self.learn.model.to(memory_format=torch.channels_last)
  
file_path: fastai/fastai/callback/channelslast.py
imports: from __future__ import annotations
  from ..basics import *
  from .fp16 import AMPMode, MixedPrecision
  from torch.cuda.amp import GradScaler
label_desc: Use image node_id 1 for calling the ChannelsLast obj's underlying member method code with example usage: obj.before_fit() without return types