<gh_stars>10-100
def map_from_mxnet_to_onnx(model_name):
  if model_name == 'resnet50-v1.5':
    map_dict = {
      "resnetv1b_layers4_conv0_weight":"resnet_model/conv2d_44/kernel/read/_251__cf__251:0",
      "resnetv1b_down4_conv0_bias":"resnet_model/conv2d_43/Conv2D_bn_offset:0",
      "resnetv1b_down4_conv0_weight":"resnet_model/conv2d_43/kernel/read/_250__cf__250:0",
      "resnetv1b_layers3_conv17_bias":"resnet_model/conv2d_42/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv17_weight":"resnet_model/conv2d_42/kernel/read/_249__cf__249:0",
      "resnetv1b_layers3_conv16_bias":"resnet_model/conv2d_41/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv16_weight":"resnet_model/conv2d_41/kernel/read/_248__cf__248:0",
      "resnetv1b_layers3_conv15_bias":"resnet_model/conv2d_40/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv15_weight":"resnet_model/conv2d_40/kernel/read/_247__cf__247:0",
      "resnetv1b_layers3_conv14_bias":"resnet_model/conv2d_39/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv14_weight":"resnet_model/conv2d_39/kernel/read/_245__cf__245:0",
      "resnetv1b_layers3_conv13_bias":"resnet_model/conv2d_38/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv13_weight":"resnet_model/conv2d_38/kernel/read/_244__cf__244:0",
      "resnetv1b_layers3_conv12_bias":"resnet_model/conv2d_37/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv12_weight":"resnet_model/conv2d_37/kernel/read/_243__cf__243:0",
      "resnetv1b_layers3_conv11_bias":"resnet_model/conv2d_36/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv11_weight":"resnet_model/conv2d_36/kernel/read/_242__cf__242:0",
      "resnetv1b_layers3_conv10_bias":"resnet_model/conv2d_35/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv10_weight":"resnet_model/conv2d_35/kernel/read/_241__cf__241:0",
      "resnetv1b_layers3_conv9_bias":"resnet_model/conv2d_34/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv9_weight":"resnet_model/conv2d_34/kernel/read/_240__cf__240:0",
      "resnetv1b_dense0_weight":"resnet_model/dense/kernel/read/_266__cf__266:0",
      "resnetv1b_layers3_conv8_bias":"resnet_model/conv2d_33/Conv2D_bn_offset:0",
      "resnetv1b_dense0_bias":"resnet_model/dense/bias/read/_265__cf__265:0",
      "resnetv1b_conv0_weight":"resnet_model/conv2d/kernel/read/_212__cf__212:0",
      "resnetv1b_layers3_conv8_weight":"resnet_model/conv2d_33/kernel/read/_239__cf__239:0",
      "resnetv1b_layers2_conv9_bias":"resnet_model/conv2d_21/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv9_weight":"resnet_model/conv2d_21/kernel/read/_226__cf__226:0",
      "resnetv1b_layers2_conv8_bias":"resnet_model/conv2d_20/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv8_weight":"resnet_model/conv2d_20/kernel/read/_225__cf__225:0",
      "resnetv1b_layers2_conv7_bias":"resnet_model/conv2d_19/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv7_weight":"resnet_model/conv2d_19/kernel/read/_223__cf__223:0",
      "resnetv1b_layers2_conv6_bias":"resnet_model/conv2d_18/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv6_weight":"resnet_model/conv2d_18/kernel/read/_222__cf__222:0",
      "resnetv1b_layers2_conv5_bias":"resnet_model/conv2d_17/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv5_weight":"resnet_model/conv2d_17/kernel/read/_221__cf__221:0",
      "resnetv1b_layers2_conv4_bias":"resnet_model/conv2d_16/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv4_weight":"resnet_model/conv2d_16/kernel/read/_220__cf__220:0",
      "resnetv1b_layers2_conv3_bias":"resnet_model/conv2d_15/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv3_weight":"resnet_model/conv2d_15/kernel/read/_219__cf__219:0",
      "resnetv1b_layers2_conv2_bias":"resnet_model/conv2d_14/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv2_weight":"resnet_model/conv2d_14/kernel/read/_218__cf__218:0",
      "resnetv1b_layers2_conv1_bias":"resnet_model/conv2d_13/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv1_weight":"resnet_model/conv2d_13/kernel/read/_217__cf__217:0",
      "resnetv1b_layers2_conv0_bias":"resnet_model/conv2d_12/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv0_weight":"resnet_model/conv2d_12/kernel/read/_216__cf__216:0",
      "resnetv1b_down2_conv0_bias":"resnet_model/conv2d_11/Conv2D_bn_offset:0",
      "resnetv1b_down2_conv0_weight":"resnet_model/conv2d_11/kernel/read/_215__cf__215:0",
      "resnetv1b_layers3_conv7_bias":"resnet_model/conv2d_32/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv7_weight":"resnet_model/conv2d_32/kernel/read/_238__cf__238:0",
      "resnetv1b_layers3_conv6_bias":"resnet_model/conv2d_31/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv6_weight":"resnet_model/conv2d_31/kernel/read/_237__cf__237:0",
      "resnetv1b_layers3_conv5_bias":"resnet_model/conv2d_30/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv5_weight":"resnet_model/conv2d_30/kernel/read/_236__cf__236:0",
      "resnetv1b_layers3_conv4_bias":"resnet_model/conv2d_29/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv4_weight":"resnet_model/conv2d_29/kernel/read/_234__cf__234:0",
      "resnetv1b_layers3_conv3_bias":"resnet_model/conv2d_28/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv3_weight":"resnet_model/conv2d_28/kernel/read/_233__cf__233:0",
      "resnetv1b_layers3_conv2_bias":"resnet_model/conv2d_27/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv2_weight":"resnet_model/conv2d_27/kernel/read/_232__cf__232:0",
      "resnetv1b_layers3_conv1_bias":"resnet_model/conv2d_26/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv1_weight":"resnet_model/conv2d_26/kernel/read/_231__cf__231:0",
      "resnetv1b_layers3_conv0_bias":"resnet_model/conv2d_25/Conv2D_bn_offset:0",
      "resnetv1b_layers3_conv0_weight":"resnet_model/conv2d_25/kernel/read/_230__cf__230:0",
      "resnetv1b_down3_conv0_bias":"resnet_model/conv2d_24/Conv2D_bn_offset:0",
      "resnetv1b_down3_conv0_weight":"resnet_model/conv2d_24/kernel/read/_229__cf__229:0",
      "resnetv1b_layers2_conv11_bias":"resnet_model/conv2d_23/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv11_weight":"resnet_model/conv2d_23/kernel/read/_228__cf__228:0",
      "resnetv1b_layers2_conv10_bias":"resnet_model/conv2d_22/Conv2D_bn_offset:0",
      "resnetv1b_layers2_conv10_weight":"resnet_model/conv2d_22/kernel/read/_227__cf__227:0",
      "resnetv1b_batchnorm0_running_var":"resnet_model/batch_normalization/moving_variance/read/_3__cf__3:0",
      "resnetv1b_layers1_conv8_bias":"resnet_model/conv2d_10/Conv2D_bn_offset:0",
      "resnetv1b_batchnorm0_running_mean":"resnet_model/batch_normalization/moving_mean/read/_2__cf__2:0",
      "resnetv1b_layers1_conv8_weight":"resnet_model/conv2d_10/kernel/read/_214__cf__214:0",
      "resnetv1b_batchnorm0_gamma":"resnet_model/batch_normalization/gamma/read/_1__cf__1:0",
      "resnetv1b_layers1_conv7_bias":"resnet_model/conv2d_9/Conv2D_bn_offset:0",
      "resnetv1b_batchnorm0_beta":"resnet_model/batch_normalization/beta/read/_0__cf__0:0",
      "resnetv1b_layers1_conv7_weight":"resnet_model/conv2d_9/kernel/read/_264__cf__264:0",
      "resnetv1b_layers1_conv6_bias":"resnet_model/conv2d_8/Conv2D_bn_offset:0",
      "resnetv1b_layers1_conv6_weight":"resnet_model/conv2d_8/kernel/read/_263__cf__263:0",
      "resnetv1b_layers1_conv5_bias":"resnet_model/conv2d_7/Conv2D_bn_offset:0",
      "resnetv1b_layers4_conv8_bias":"resnet_model/conv2d_52/Conv2D_bn_offset:0",
      "resnetv1b_layers1_conv5_weight":"resnet_model/conv2d_7/kernel/read/_262__cf__262:0",
      "resnetv1b_layers4_conv8_weight":"resnet_model/conv2d_52/kernel/read/_260__cf__260:0",
      "resnetv1b_layers1_conv4_bias":"resnet_model/conv2d_6/Conv2D_bn_offset:0",
      "resnetv1b_layers4_conv7_bias":"resnet_model/conv2d_51/Conv2D_bn_offset:0",
      "resnetv1b_layers1_conv4_weight":"resnet_model/conv2d_6/kernel/read/_261__cf__261:0",
      "resnetv1b_layers4_conv7_weight":"resnet_model/conv2d_51/kernel/read/_259__cf__259:0",
      "resnetv1b_layers1_conv3_bias":"resnet_model/conv2d_5/Conv2D_bn_offset:0",
      "resnetv1b_layers4_conv6_bias":"resnet_model/conv2d_50/Conv2D_bn_offset:0",
      "resnetv1b_layers1_conv3_weight":"resnet_model/conv2d_5/kernel/read/_257__cf__257:0",
      "resnetv1b_layers4_conv6_weight":"resnet_model/conv2d_50/kernel/read/_258__cf__258:0",
      "resnetv1b_layers1_conv2_bias":"resnet_model/conv2d_4/Conv2D_bn_offset:0",
      "resnetv1b_layers4_conv5_bias":"resnet_model/conv2d_49/Conv2D_bn_offset:0",
      "resnetv1b_layers1_conv2_weight":"resnet_model/conv2d_4/kernel/read/_246__cf__246:0",
      "resnetv1b_layers4_conv5_weight":"resnet_model/conv2d_49/kernel/read/_256__cf__256:0",
      "resnetv1b_layers1_conv1_bias":"resnet_model/conv2d_3/Conv2D_bn_offset:0",
      "resnetv1b_layers4_conv4_bias":"resnet_model/conv2d_48/Conv2D_bn_offset:0",
      "resnetv1b_layers1_conv1_weight":"resnet_model/conv2d_3/kernel/read/_235__cf__235:0",
      "resnetv1b_layers4_conv4_weight":"resnet_model/conv2d_48/kernel/read/_255__cf__255:0",
      "resnetv1b_layers1_conv0_bias":"resnet_model/conv2d_2/Conv2D_bn_offset:0",
      "resnetv1b_layers4_conv3_bias":"resnet_model/conv2d_47/Conv2D_bn_offset:0",
      "resnetv1b_layers1_conv0_weight":"resnet_model/conv2d_2/kernel/read/_224__cf__224:0",
      "resnetv1b_layers4_conv3_weight":"resnet_model/conv2d_47/kernel/read/_254__cf__254:0",
      "resnetv1b_down1_conv0_bias":"resnet_model/conv2d_1/Conv2D_bn_offset:0",
      "resnetv1b_layers4_conv2_bias":"resnet_model/conv2d_46/Conv2D_bn_offset:0",
      "resnetv1b_down1_conv0_weight":"resnet_model/conv2d_1/kernel/read/_213__cf__213:0",
      "resnetv1b_layers4_conv2_weight":"resnet_model/conv2d_46/kernel/read/_253__cf__253:0",
      "resnetv1b_layers4_conv1_bias":"resnet_model/conv2d_45/Conv2D_bn_offset:0",
      "resnetv1b_layers4_conv1_weight":"resnet_model/conv2d_45/kernel/read/_252__cf__252:0",
      "resnetv1b_layers4_conv0_bias":"resnet_model/conv2d_44/Conv2D_bn_offset:0"
    }
  else:
    raise ValueError("model {} not supported".format(model_name))

  return map_dict
