docstr: Removes constraint states for completed sentences (if supported).
  This is called from sequence_generator._generate() when sentences are
  deleted from the batch.
  
  Args:
      batch_idxs: Indices of *sentences* whose constraint state should be *kept*.
docstr_tok: ["Removes","constraint","states","for","completed","sentences","(","if","supported",")",".","This","is","called","from","sequence_generator._generate","(",")","when","sentences","are","deleted","from","the","batch",".","Args",":","batch_idxs",":","Indices","of","*","sentences","*","whose","constraint","state","should","be","*","kept","*","."]
code: def prune_sentences(self, batch_idxs: Tensor):
      """
      Removes constraint states for completed sentences (if supported).
      This is called from sequence_generator._generate() when sentences are
      deleted from the batch.
  
      Args:
          batch_idxs: Indices of *sentences* whose constraint state should be *kept*.
      """
      pass
  
imports: from typing import Dict, Optional
  import torch
  import torch.nn
  from torch import Tensor
label_desc: Use image node_id 5 for calling the MultichannelSearch obj's underlying member method code with example usage: obj.prune_sentences(batch_idxs) without return types