class_docstr: Class implementing Binarizer operators in PyTorch.
class_docstr_tok: ["Class","implementing","Binarizer","operators","in","PyTorch","."]
code: def forward(self, x):
      return torch.gt(x, self.threshold).float()
  
file_path: hummingbird/hummingbird/ml/operator_converters/_discretizer_implementations.py
imports: import torch
  from ._physical_operator import PhysicalOperator
  from ._one_hot_encoder_implementations import OneHotEncoder
label_desc: Use image node_id 2 for calling the Binarizer obj's underlying member method code with example usage: obj.forward(x) and returns: torch