class_docstr: `Callback` that returns all predictions and targets, optionally `with_input` or `with_loss`
class_docstr_tok: ["`","Callback","`","that","returns","all","predictions","and","targets",",","optionally","`","with_input","`","or","`","with_loss","`"]
docstr: Returns all recorded tensors in the order [inputs, preds, targets, losses]
docstr_tok: ["Returns","all","recorded","tensors","in","the","order","[","inputs",",","preds",",","targets",",","losses","]"]
code: def all_tensors(self) -> (Tensor, list):
      "Returns all recorded tensors in the order [inputs, preds, targets, losses]"
      res = [
          self.preds if self.with_preds else None,
          self.targets if self.with_targs else None,
      ]
      if self.with_input:
          res = [self.inputs] + res
      if self.with_loss:
          res.append(self.losses)
      return res
  
imports: from __future__ import annotations
  from ..data.all import *
  from ..optimizer import *
  from ..losses import BaseLoss
label_desc: Use image node_id 6 for calling the GatherPredsCallback obj's underlying member method code with example usage: obj.all_tensors() and returns: res