class_docstr: The Stack LSTM from Dyer et al: https://arxiv.org/abs/1505.08075
class_docstr_tok: ["The","Stack","LSTM","from","Dyer","et","al",":","https",":","\/\/arxiv.org\/abs\/1505.08075"]
docstr: Pops and returns tuple of output embedding (1, lstm_hidden_dim) and element
docstr_tok: ["Pops","and","returns","tuple","of","output","embedding","(","1",",","lstm_hidden_dim",")","and","element"]
code: def pop(self) -> Tuple[torch.Tensor, Element]:
      """
      Pops and returns tuple of output embedding (1, lstm_hidden_dim) and element
      """
  
      return self.stack.pop()[1]
  
imports: from typing import Any, List, Sized, Tuple
  import torch
  import torch.nn
  from pytext.torchscript.utils import reverse_tensor_list
  from pytext.utils.cuda import FloatTensor
  from pytext.utils.tensor import xaviervar
label_desc: Use image node_id 4 for calling the StackLSTM obj's underlying member method code with example usage: obj.pop() and returns: self