class_docstr: Class implementing Binarizer operators in PyTorch.
class_docstr_tok: ["Class","implementing","Binarizer","operators","in","PyTorch","."]
code: def __init__(self, logical_operator, threshold, device):
      super(Binarizer, self).__init__(logical_operator)
      self.transformer = True
      self.threshold = torch.nn.Parameter(
          torch.FloatTensor([threshold]), requires_grad=False
      )
  
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 1 to create a new Binarizer object from inherited base classes: PhysicalOperator, torch.nn with example: obj = Binarizer(logical_operator, threshold, device)