original_docstring: Get clip offsets in train mode.
  
          It will calculate sampled frame indices of each proposal, and then
          assemble them.
  
          Args:
              num_frames (int): Total number of frame in the video.
              proposals (list): Proposals fetched.
  
          Returns:
              np.ndarray: Sampled frame indices in train mode.
          
docstring: Get clip offsets in train mode.
  It will calculate sampled frame indices of each proposal, and then
  assemble them.
docstring_tokens: Get clip offsets in train mode . It will calculate sampled frame indices of each proposal and then assemble them .
code: def _get_train_clips(self, num_frames, proposals):
          """Get clip offsets in train mode.
  
          It will calculate sampled frame indices of each proposal, and then
          assemble them.
  
          Args:
              num_frames (int): Total number of frame in the video.
              proposals (list): Proposals fetched.
  
          Returns:
              np.ndarray: Sampled frame indices in train mode.
          """
          clip_offsets = []
          for proposal in proposals:
              proposal_clip_offsets = self._get_proposal_clips(
                  proposal[0][1], num_frames)
              clip_offsets = np.concatenate(
                  [clip_offsets, proposal_clip_offsets])
  
          return clip_offsets
code_tokens: def _get_train_clips ( self , num_frames , proposals ) : clip_offsets = [ ] for proposal in proposals : proposal_clip_offsets = self . _get_proposal_clips ( proposal [ 0 ] [ 1 ] , num_frames ) clip_offsets = np . concatenate ( [ clip_offsets , proposal_clip_offsets ] ) return clip_offsets
short_docstring: Get clip offsets in train mode.
short_docstring_tokens: Get clip offsets in train mode .
comment: """Get clip offsets in train mode.
  
          It will calculate sampled frame indices of each proposal, and then
          assemble them.
  
          Args:
              num_frames (int): Total number of frame in the video.
              proposals (list): Proposals fetched.
  
          Returns:
              np.ndarray: Sampled frame indices in train mode.
          """