@staticmethod<EOL><INDENT>def new(params, event_size, dtype=None, validate_args=False, name=None):<DEDENT>
with tf.compat.v1.name_scope(name, '<STR_LIT>',<EOL>[params, event_size]):<EOL><INDENT>return tfd.OneHotCategorical(<EOL>logits=params,<EOL>dtype=dtype or params.dtype.base_dtype,<EOL>validate_args=validate_args)<EOL><DEDENT>
Create the distribution instance from a `params` vector.