title: Is there any layer for nearest-neighbor subsampling label image in caffe?
body: <p>I want to subsample the label image in the network, and I wish the output values of the layer are all existed in the input label image (i.e. nearest-neighbor subsampling, while bilinear subsampling does not). How to realize such a layer in caffe? Or where can I find the code for this layer in existed open-source code?
  To the best of my knowledge, the <strong>interp</strong> layer in <code>deeplab</code> code can realize bilinear subsampling, while the subsampled label image contain illegal labels.</p>