class_docstr: The basic kernel class. Management of active dimensions is implemented here.
  
  :param active_dims: active dimensions, either a slice or list of
      indices into the columns of X.
  :param name: optional kernel name.
class_docstr_tok: ["The","basic","kernel","class",".","Management","of","active","dimensions","is","implemented","here",".",":","param","active_dims",":","active","dimensions",",","either","a","slice","or","list","of","indices","into","the","columns","of","X.",":","param","name",":","optional","kernel","name","."]
docstr: Validate that ARD parameter matches the number of active_dims (provided active_dims
  has been specified as an array).
docstr_tok: ["Validate","that","ARD","parameter","matches","the","number","of","active_dims","(","provided","active_dims","has","been","specified","as","an","array",")","."]
code: def _validate_ard_active_dims(
      self, ard_parameter: TensorType
  ) -> None:
      """
      Validate that ARD parameter matches the number of active_dims (provided active_dims
      has been specified as an array).
      """
      ard_parameter = tf.convert_to_tensor(ard_parameter)
      assert isinstance(ard_parameter, tf.Tensor)  # Hint for mypy.
  
      if self.active_dims is None or isinstance(
          self.active_dims, slice
      ):
          # Can only validate parameter if active_dims is an array
          return
  
      if ard_parameter.shape.rank > 0 and ard_parameter.shape[0] != len(
          self.active_dims
      ):
          raise ValueError(
              f"Size of `active_dims` {self.active_dims} does not match "
              f"size of ard parameter ({ard_parameter.shape[0]})"
          )
  
imports: import abc
  from functools import partial, reduce
  from typing import Callable, List, Optional, Sequence, Tuple, Union, overload
  import numpy
  import tensorflow
  from check_shapes import check_shapes
  from ..base import AnyNDArray, Module, TensorType
label_desc: Use image node_id 10 for calling the Kernel obj's underlying member method code with example usage: obj._validate_ard_active_dims(ard_parameter) without return types