'Encode a box list relative to an anchor collection.
Args:
boxes: BoxList holding N boxes to be encoded
anchors: BoxList of N anchors
Returns:
a tensor representing N relative-encoded boxes'

def encode(self, boxes, anchors):

    with tf.name_scope('Encode'):
        return self._encode(boxes, anchors)
