class_docstr: A layer which asserts it's inputs are a certain type.
class_docstr_tok: ["A","layer","which","asserts","it","'s","inputs","are","a","certain","type","."]
code: def __init__(self, assert_type=None, **kwargs):
      self._assert_type = (
          dtypes.as_dtype(assert_type).name if assert_type else None
      )
      super(AssertTypeLayer, self).__init__(**kwargs)
  
imports: from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_conversion
  from tensorflow.python.keras import regularizers
  from tensorflow.python.keras.engine import base_layer
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import check_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import custom_gradient
  from tensorflow.python.ops import math_ops
  from tensorflow.python.util import nest
label_desc: Use image node_id 1 to create a new AssertTypeLayer object from inherited base classes: base_layer with example: obj = AssertTypeLayer(assert_type)