docstr: Update the state of the sequence after a forward pass. This should be called after the forward
  pass completes. NOTE: due to the asynchronous nature of the accelerator, this may be called
  before the forward pass completes on the device itself.
docstr_tok: ["Update","the","state","of","the","sequence","after","a","forward","pass",".","This","should","be","called","after","the","forward","pass","completes",".","NOTE",":","due","to","the","asynchronous","nature","of","the","accelerator",",","this","may","be","called","before","the","forward","pass","completes","on","the","device","itself","."]
code: def post_forward(self) -> None:
      """
      Update the state of the sequence after a forward pass. This should be called after the forward
      pass completes. NOTE: due to the asynchronous nature of the accelerator, this may be called
      before the forward pass completes on the device itself.
      """
      self._seen_tokens += self._in_flight_tokens
      self._in_flight_tokens = 0
  
imports: from typing import List, Tuple, Union
  import torch
label_desc: Use image node_id 11 for calling the DSSequenceDescriptor obj's underlying member method code with example usage: obj.post_forward() without return types