class_docstr: DEPRECATED.
class_docstr_tok: ["DEPRECATED","."]
code: def __init__(self, theta=1.0, **kwargs):
      super().__init__(**kwargs)
      if theta is None:
          raise ValueError(
              "Theta of a Thresholded ReLU layer cannot be None, expecting a "
              f"float. Received: {theta}"
          )
      if theta < 0:
          raise ValueError(
              "The theta value of a Thresholded ReLU layer "
              f"should be >=0. Received: {theta}"
          )
      self.supports_masking = True
      self.theta = tf.convert_to_tensor(theta, dtype=self.compute_dtype)
  
imports: from keras import backend
  from keras.api_export import keras_export
  from keras.layers.layer import Layer
  from keras.utils.module_utils import tensorflow
label_desc: Use image node_id 1 to create a new ThresholdedReLU object from inherited base classes: Layer with example: obj = ThresholdedReLU(theta)