import tensorflow as tf

  def get_params(self):
    """See base class."""
    return {}, {}

  def encode(self, x, encode_params):
    """See base class."""
    del encode_params  # Unused.
    signs = tf.sign(x)
    abs_vals = tf.abs(x)
    ints = tf.floor(abs_vals)
    floats = abs_vals - ints
    return {
        self.ENCODED_SIGNS_KEY: signs,
        self.ENCODED_INTS_KEY: ints,
