class_docstr: Residual block: x + F(x).
class_docstr_tok: ["Residual","block",":","x","+","F","(","x",")","."]
code: def forward(self, x):
      if self.proj_block:
          x = self.bn(self.proj(x)) + self.f(x)
      else:
          x = x + self.f(x)
      x = self.relu(x)
      return x
  
imports: import torch
  from torch import nn
label_desc: Use image node_id 2 for calling the ResBlock obj's underlying member method code with example usage: obj.forward(x) and returns: x