class_docstr: This is the Classification Model training class, that allows you to define a deep learning network
  from the 4 available networks types supported by ImageAI which are MobileNetv2, ResNet50,
  InceptionV3 and DenseNet121 and then train on custom image data.
class_docstr_tok: ["This","is","the","Classification","Model","training","class",",","that","allows","you","to","define","a","deep","learning","network","from","the","4","available","networks","types","supported","by","ImageAI","which","are","MobileNetv2",",","ResNet50",",","InceptionV3","and","DenseNet121","and","then","train","on","custom","image","data","."]
docstr: Set the transfer learning mode to freeze all layers.
  
  NOTE: The last layer (fully connected layer) is trainable.
docstr_tok: ["Set","the","transfer","learning","mode","to","freeze","all","layers",".","NOTE",":","The","last","layer","(","fully","connected","layer",")","is","trainable","."]
code: def freezeAllLayers(self) -> None:
      """
      Set the transfer learning mode to freeze all layers.
  
      NOTE: The last layer (fully connected layer) is trainable.
      """
      self.__transfer_learning_mode = "freeze_all"
  
imports: import time, warnings
  import os
  import copy
  import re
  import json
  from typing import List, Tuple, Union
  from PIL import Image
  import numpy
  import torch
  import torch.nn
  from torch.optim import lr_scheduler
  from torchvision import datasets
  from torchvision import transforms
  from torchvision.models import mobilenet_v2, inception_v3, resnet50, densenet121
  from torchvision.models.inception import InceptionOutputs
  from .data_transformation import data_transforms1, data_transforms2
  from .training_params import resnet50_train_params, densenet121_train_params, inception_v3_train_params, mobilenet_v2_train_params
  from tqdm import tqdm
  from ...backend_check.model_extension import extension_check
label_desc: Use image node_id 10 for calling the ClassificationModelTrainer obj's underlying member method code with example usage: obj.freezeAllLayers() without return types