class_docstr: Residual basic block: x + F(x), F = basic transform.
class_docstr_tok: ["Residual","basic","block",":","x","+","F","(","x",")",",","F","=","basic","transform","."]
code: def forward(self, x):
      if self.proj_block:
          x = self.bn(self.proj(x)) + self.f(x)
      else:
          x = x + self.f(x)
  
      return self.activation(x)
  
imports: import math
  from collections import OrderedDict
  from enum import auto, Enum
  from typing import Any, Dict, Optional, Sequence
  import torch.nn
  from classy_vision.generic.util import get_torch_version
  from classy_vision.models import ClassyModel, register_model
  from classy_vision.models.squeeze_and_excitation_layer import SqueezeAndExcitationLayer
label_desc: Use image node_id 2 for calling the ResBasicBlock obj's underlying member method code with example usage: obj.forward(x) and returns: self