def METHOD_NAME(self):
    with self.assertRaisesRegex(
        ValueError, "inputs should be dense tensors"
    ):
        sparse_in = tf.sparse.from_dense(np.array([1]))
        layers.HashedCrossing(num_bins=10)((sparse_in, sparse_in))