class_docstr: Encoding stage applying clipping by value (L-infinity ball projection).
  
  See `tf.clip_by_value` for more information.
class_docstr_tok: ["Encoding","stage","applying","clipping","by","value","(","L-infinity","ball","projection",")",".","See","`","tf.clip_by_value","`","for","more","information","."]
docstr: See base class.
docstr_tok: ["See","base","class","."]
code: def encode(self, x, encode_params):
      """See base class."""
      clipped_x = tf.clip_by_value(
          x,
          tf.cast(encode_params[self.MIN_PARAMS_KEY], x.dtype),
          tf.cast(encode_params[self.MAX_PARAMS_KEY], x.dtype),
      )
      return collections.OrderedDict(
          [(self.ENCODED_VALUES_KEY, clipped_x)]
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import tensorflow
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import encoding_stage
label_desc: Use image node_id 7 for calling the ClipByValueEncodingStage obj's underlying member method code with example usage: obj.encode(x, encode_params) and returns: collections