(self, num_dims, output_dim, name=None)
A class mixture.

    Args:
      num_dims: int, number of dimensions.
      output_dim: int, number of components.
      name: str, name scope to use for variable creation.
A class mixture.
A class mixture .
def __init__(self, num_dims, output_dim, name=None):
    """A class mixture.

    Args:
      num_dims: int, number of dimensions.
      output_dim: int, number of components.
      name: str, name scope to use for variable creation.
    """
    super(ReparameterizableClassMixture, self).__init__(name=name)
    self.num_dims = num_dims
    self.num_components = output_dim

    with tf.compat.v1.name_scope(META_PARAMETER_SCOPE):
      self.build_meta_parameters()
    with tf.compat.v1.name_scope(TASK_PARAMETER_SCOPE):
      self.build_task_parameters()
def __init__ ( self , num_dims , output_dim , name = None ) : super ( ReparameterizableClassMixture , self ) . __init__ ( name = name ) self . num_dims = num_dims self . num_components = output_dim with tf . compat . v1 . name_scope ( META_PARAMETER_SCOPE ) : self . build_meta_parameters ( ) with tf . compat . v1 . name_scope ( TASK_PARAMETER_SCOPE ) : self . build_task_parameters ( )