class_docstr: Protocol for transformer objects.
  
  The :py:obj:`~alibi_detect.od.pytorch.ensemble.BaseTransformTorch` object provides abstract methods for
  objects that map between `torch` tensors. This protocol models the interface of the `BaseTransformTorch`
  class.
class_docstr_tok: ["Protocol","for","transformer","objects",".","The",":","py",":","obj",":","`","~alibi_detect.od.pytorch.ensemble.BaseTransformTorch","`","object","provides","abstract","methods","for","objects","that","map","between","`","torch","`","tensors",".","This","protocol","models","the","interface","of","the","`","BaseTransformTorch","`","class","."]
code: def transform(self, x):
      pass
  
file_path: alibi-detect/alibi_detect/od/base.py
imports: from alibi_detect.utils.missing_optional_dependency import import_optional
  from typing import Union
  from typing_extensions import Literal, Protocol, runtime_checkable
label_desc: Use image node_id 1 for calling the TransformProtocol obj's underlying member method code with example usage: obj.transform(x) without return types