class_docstr: Describes a tfp.distribution.Distribution.
docstr: Creates a DistributionSpec.
  
  Args:
    builder: Callable function(**params) which returns a Distribution
      following the spec.
    input_params_spec: Nest of tensor_specs describing the tensor parameters
      required for building the described distribution.
    sample_spec: Data type of the output samples of the described
      distribution.
    **distribution_parameters: Extra parameters for building the distribution.
docstr_tok: ["Creates","a","DistributionSpec",".","Args",":","builder",":","Callable","function","(","*","*","params",")","which","returns","a","Distribution","following","the","spec",".","input_params_spec",":","Nest","of","tensor_specs","describing","the","tensor","parameters","required","for","building","the","described","distribution",".","sample_spec",":","Data","type","of","the","output","samples","of","the","described","distribution",".","*","*","distribution_parameters",":","Extra","parameters","for","building","the","distribution","."]
code: def __init__(
      self,
      builder,
      input_params_spec,
      sample_spec,
      **distribution_parameters,
  ):
      """Creates a DistributionSpec.
  
      Args:
        builder: Callable function(**params) which returns a Distribution
          following the spec.
        input_params_spec: Nest of tensor_specs describing the tensor parameters
          required for building the described distribution.
        sample_spec: Data type of the output samples of the described
          distribution.
        **distribution_parameters: Extra parameters for building the distribution.
      """
      self._builder = builder
      self._input_params_spec = input_params_spec
      self._sample_spec = sample_spec
      self._distribution_parameters = distribution_parameters
  
file_path: agents/tf_agents/specs/distribution_spec.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow_probability
  from tensorflow.python.util import nest
label_desc: Use image node_id 1 to create a new DistributionSpec object from inherited base classes: object with example: obj = DistributionSpec(builder, input_params_spec, sample_spec)