class_docstr: Encoder that encodes long or float tensors into scaled integer tensors.
code: def __init__(self, precision_bits=None):
      if precision_bits is None:
          precision_bits = cfg.safety.mpc.encoder.precision_bits
      self._precision_bits = precision_bits
      self._scale = int(2**precision_bits)
  
file_path: FATE/python/fate/arch/protocol/mpc/encoder.py
imports: import math
  import numpy
  import torch
  from fate.arch.tensor import DTensor
  from .common.tensor_types import is_float_tensor, is_int_tensor
  from .config import cfg
  from .cryptensor import CrypTensor
label_desc: Use image node_id 1 to create a new FixedPointEncoder object  with example: obj = FixedPointEncoder(precision_bits)