examples/research_projects/bertabs/modeling_bertabs.py/DecoderState/detach
class DecoderState:    def detach(self):
        """Need to document this"""
        self.hidden = tuple([_.detach() for _ in self.hidden])
        self.input_feed = self.input_feed.detach()