class_docstr: Basic building block for ResNet18 and ResNet34.
  Not supported for I3D at this moment.
class_docstr_tok: ["Basic","building","block","for","ResNet18","and","ResNet34",".","Not","supported","for","I3D","at","this","moment","."]
docstr: Hybrid forward of a ResNet basic block
docstr_tok: ["Hybrid","forward","of","a","ResNet","basic","block"]
code: def hybrid_forward(self, F, x):
      """Hybrid forward of a ResNet basic block"""
      identity = x
      out = self.conv1(x)
      out = self.bn1(out)
      out = self.relu(out)
      out = self.conv2(out)
      out = self.bn2(out)
      if self.downsample is not None:
          identity = self.downsample(x)
      out = F.Activation(out + identity, act_type="relu")
      return out
  
imports: from mxnet import nd
  from mxnet import init
  from mxnet.context import cpu
  from mxnet.gluon.block import HybridBlock
  from mxnet.gluon import nn
  from mxnet.gluon.nn import BatchNorm
  from ..resnetv1b import resnet50_v1b, resnet101_v1b
  from .non_local import build_nonlocal_block
label_desc: Use image node_id 2 for calling the BasicBlock obj's underlying member method code with example usage: obj.hybrid_forward(F, x) and returns: out