class_docstr: This class implements `FastViT architecture <https://arxiv.org/pdf/2303.14189.pdf>`_
class_docstr_tok: ["This","class","implements","`","FastViT","architecture","<","https",":","\/\/arxiv.org\/pdf\/2303.14189.pdf",">","`","_"]
docstr: Init. for classification
code: def cls_init_weights(self, m: nn.Module) -> None:
      """Init. for classification"""
      if isinstance(m, nn.Linear):
          trunc_normal_(m.weight, std=0.02)
          if isinstance(m, nn.Linear) and m.bias is not None:
              nn.init.constant_(m.bias, 0)
  
imports: import os
  import copy
  from functools import partial
  from typing import List, Tuple, Optional, Union
  import torch
  import torch.nn
  from timm.data import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD
  from timm.models.layers import DropPath, trunc_normal_
  from timm.models.registry import register_model
  from models.modules.mobileone import MobileOneBlock
  from models.modules.replknet import ReparamLargeKernelConv
label_desc: Use image node_id 2 for calling the FastViT obj's underlying member method code with example usage: obj.cls_init_weights(m) without return types