class_docstr: The :class:`~flash.core.data.io.output_transform.OutputTransform` encapsulates all the data processing logic that
  should run after the model.
class_docstr_tok: ["The",":","class",":","`","~flash.core.data.io.output_transform.OutputTransform","`","encapsulates","all","the","data","processing","logic","that","should","run","after","the","model","."]
docstr: Transforms to apply to a single sample after splitting up the batch.
  
  Can involve both CPU and Device transforms as this is not applied in separate workers.
docstr_tok: ["Transforms","to","apply","to","a","single","sample","after","splitting","up","the","batch",".","Can","involve","both","CPU","and","Device","transforms","as","this","is","not","applied","in","separate","workers","."]
code: def per_sample_transform(sample: Any) -> Any:
      """Transforms to apply to a single sample after splitting up the batch.
  
      Can involve both CPU and Device transforms as this is not applied in separate workers.
  
      """
      return sample
  
imports: from typing import Any, Sequence
  from flash.core.data.batch import default_uncollate
label_desc: Use image node_id 2 for calling the OutputTransform obj's underlying member method code with example usage: obj.per_sample_transform(sample) and returns: sample