message: [ResNet]: fix for new API
diff: @@ -36,14 +36,14 @@ Tensor BottleneckBlock(FFModel& ff,
  int out_channels,
  int stride)
  {
  - Tensor t = ff.conv2d("conv1", input, out_channels, 1, 1, 1, 1, 0, 0, AC_MODE_RELU);
  - t = ff.conv2d("conv2", t, out_channels, 3, 3, stride, stride, 1, 1, AC_MODE_RELU);
  - t = ff.conv2d("conv3", t, 4*out_channels, 1, 1, 1, 1, 0, 0);
  + Tensor t = ff.conv2d(input, out_channels, 1, 1, 1, 1, 0, 0, AC_MODE_RELU);
  + t = ff.conv2d(t, out_channels, 3, 3, stride, stride, 1, 1, AC_MODE_RELU);
  + t = ff.conv2d(t, 4*out_channels, 1, 1, 1, 1, 0, 0);
  if ((stride > 1) || (input.adim[1] != out_channels * 4)) {
  printf("input.adim = %d out_channels*4 = %d\n", input.adim[1], out_channels*4);
  - input = ff.conv2d("conv4", input, 4*out_channels, 1, 1, stride, stride, 0, 0, AC_MODE_RELU);
  + input = ff.conv2d(input, 4*out_channels, 1, 1, stride, stride, 0, 0, AC_MODE_RELU);
  }
  - return ff.add("add", input, t);
  + return ff.add(input, t);
  }
  void top_level_task(const Task* task,
  @@ -94,10 +94,10 @@ void top_level_task(const Task* task,
  int stride = (i==0) ? 2 : 1;
  t = BottleneckBlock(ff, t, 512, stride);
  }
  - t = ff.pool2d("pool", t, 7, 7, 1, 1, 0, 0, POOL_AVG);
  - t = ff.flat("flat", t);
  - t = ff.dense("lienar", t, 10);
  - t = ff.softmax("softmax", t, label);
  + t = ff.pool2d(t, 7, 7, 1, 1, 0, 0, POOL_AVG);
  + t = ff.flat(t);
  + t = ff.dense(t, 10);
  + t = ff.softmax(t, label);
  ff.optimizer = new SGDOptimizer(&ff, 0.001f);
  // Data Loader
  DataLoader data_loader(ff, resnetConfig, input, label);
  