parameters: (top_from, top_to)
return_statement: return L.Crop(top_from, top_to,
                    crop_param=dict(axis=ax + 1,  # +1 for first cropping dim.
                                    offset=list(-np.round(b).astype(int))))
docstring: Define a Crop layer to crop a top (from) to another top (to) by
      determining the coordinate mapping between the two and net spec'ing
      the axis and shift parameters of the crop.
docstring_summary: Define a Crop layer to crop a top (from) to another top (to) by
      determining the coordinate mapping between the two and net spec'ing
      the axis and shift parameters of the crop.
docstring_tokens: Define a Crop layer to crop a top ( from ) to another top ( to ) by determining the coordinate mapping between the two and net spec ing the axis and shift parameters of the crop .
function: def crop(top_from, top_to):
      """
      Define a Crop layer to crop a top (from) to another top (to) by
      determining the coordinate mapping between the two and net spec'ing
      the axis and shift parameters of the crop.
      """
      ax, a, b = coord_map_from_to(top_from, top_to)
      assert (a == 1).all(), 'scale mismatch on crop (a = {})'.format(a)
      assert (b <= 0).all(), 'cannot crop negative offset (b = {})'.format(b)
      assert (np.round(b) == b).all(), 'cannot crop noninteger offset ' \
          '(b = {})'.format(b)
      return L.Crop(top_from, top_to,
                    crop_param=dict(axis=ax + 1,  # +1 for first cropping dim.
                                    offset=list(-np.round(b).astype(int))))
function_tokens: def crop ( top_from , top_to ) : ax , a , b = coord_map_from_to ( top_from , top_to ) assert ( a == 1 ) . all ( ) , 'scale mismatch on crop (a = {})' . format ( a ) assert ( b <= 0 ) . all ( ) , 'cannot crop negative offset (b = {})' . format ( b ) assert ( np . round ( b ) == b ) . all ( ) , 'cannot crop noninteger offset ' '(b = {})' . format ( b ) return L . Crop ( top_from , top_to , crop_param = dict ( axis = ax + 1 , # +1 for first cropping dim. offset = list ( - np . round ( b ) . astype ( int ) ) ) )