class_docstr: An abstract base class for a training task.
  
  A ClassyTask encapsulates all the components and steps needed
  to train using a :class:`classy_vision.trainer.ClassyTrainer`.
class_docstr_tok: ["An","abstract","base","class","for","a","training","task",".","A","ClassyTask","encapsulates","all","the","components","and","steps","needed","to","train","using","a",":","class",":","`","classy_vision.trainer.ClassyTrainer","`","."]
docstr: Prepares the task for training.
  
  Will be called by the :class:`classy_vision.trainer.ClassyTrainer` to
  prepare the task, before on_start is called.
  
  Args:
      num_dataloader_workers: Number of workers to create for the dataloaders
      pin_memory: Whether the dataloaders should copy the Tensors into CUDA
          pinned memory (default False)
docstr_tok: ["Prepares","the","task","for","training",".","Will","be","called","by","the",":","class",":","`","classy_vision.trainer.ClassyTrainer","`","to","prepare","the","task",",","before","on_start","is","called",".","Args",":","num_dataloader_workers",":","Number","of","workers","to","create","for","the","dataloaders","pin_memory",":","Whether","the","dataloaders","should","copy","the","Tensors","into","CUDA","pinned","memory","(","default","False",")"]
code: def prepare(
      self, num_dataloader_workers=0, dataloader_mp_context=None
  ) -> None:
      """
      Prepares the task for training.
  
      Will be called by the :class:`classy_vision.trainer.ClassyTrainer` to
      prepare the task, before on_start is called.
  
      Args:
          num_dataloader_workers: Number of workers to create for the dataloaders
          pin_memory: Whether the dataloaders should copy the Tensors into CUDA
              pinned memory (default False)
      """
      pass
  
file_path: ClassyVision/classy_vision/tasks/classy_task.py
imports: from abc import ABC, abstractmethod
  from typing import Any, Dict
  from classy_vision.generic.util import log_class_usage
label_desc: Use image node_id 7 for calling the ClassyTask obj's underlying member method code with example usage: obj.prepare(num_dataloader_workers, dataloader_mp_context) without return types