'Get blobs and copy them into this layer\'s top blob vector.'

def forward(self, bottom, top):

    blobs = self._get_next_minibatch()
    for (blob_name, blob) in blobs.iteritems():
        top_ind = self._name_to_top_map[blob_name]
        shape = blob.shape
        if (len(shape) == 1):
            blob = blob.reshape(blob.shape[0], 1, 1, 1)
        if ((len(shape) == 2) and (blob_name != 'im_info')):
            blob = blob.reshape(blob.shape[0], blob.shape[1], 1, 1)
        top[top_ind].reshape(*blob.shape)
        top[top_ind].data[...] = blob.astype(np.float32, copy=False)
