code: def _transfer_resnet101(src, dst):
      # Reorder weights to work on RGB and not on BGR
      dst.conv1.conv.W.data[:] = src.conv1.W.data[:, ::-1]
      dst.conv1.bn.avg_mean[:] = src.bn_conv1.avg_mean
      dst.conv1.bn.avg_var[:] = src.bn_conv1.avg_var
      dst.conv1.bn.gamma.data[:] = src.scale_conv1.W.data
      dst.conv1.bn.beta.data[:] = src.scale_conv1.bias.b.data
  
      _transfer_block(src, dst.res2, ["2a", "2b", "2c"])
      _transfer_block(src, dst.res3, ["3a", "3b1", "3b2", "3b3"])
      _transfer_block(
          src,
          dst.res4,
          ["4a"] + ["4b{}".format(i) for i in range(1, 23)],
      )
      _transfer_block(src, dst.res5, ["5a", "5b", "5c"])
  
      dst.fc6.W.data[:] = src.fc1000.W.data
      dst.fc6.b.data[:] = src.fc1000.b.data
  
file_path: chainercv/examples/resnet/caffe2npz.py
imports: import argparse
  import numpy
  import chainer
  from chainer.links.caffe.caffe_function import CaffeFunction
  from chainercv.links import ResNet101
  from chainercv.links import ResNet152
  from chainercv.links import ResNet50
label_desc: Use image node_id 6 for calling a global function with example usage: _transfer_resnet101(src, dst) without return types