__init__.py 1.8 KB
Newer Older
1
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
2
#
3 4 5
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
6
#
7
#     http://www.apache.org/licenses/LICENSE-2.0
8
#
9 10 11 12 13 14
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

15
from paddle.distribution import transform
16
from paddle.distribution.bernoulli import Bernoulli
17 18 19 20
from paddle.distribution.beta import Beta
from paddle.distribution.categorical import Categorical
from paddle.distribution.dirichlet import Dirichlet
from paddle.distribution.distribution import Distribution
21
from paddle.distribution.gumbel import Gumbel
22 23 24
from paddle.distribution.exponential_family import ExponentialFamily
from paddle.distribution.independent import Independent
from paddle.distribution.kl import kl_divergence, register_kl
25
from paddle.distribution.lognormal import LogNormal
26 27 28
from paddle.distribution.multinomial import Multinomial
from paddle.distribution.normal import Normal
from paddle.distribution.transform import *  # noqa: F403
29
from paddle.distribution.transformed_distribution import TransformedDistribution
30
from paddle.distribution.uniform import Uniform
31
from paddle.distribution.laplace import Laplace
32

33
__all__ = [  # noqa
34
    'Bernoulli',
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
    'Beta',
    'Categorical',
    'Dirichlet',
    'Distribution',
    'ExponentialFamily',
    'Multinomial',
    'Normal',
    'Uniform',
    'kl_divergence',
    'register_kl',
    'Independent',
    'TransformedDistribution',
    'Laplace',
    'LogNormal',
    'Gumbel',
50
]
51 52

__all__.extend(transform.__all__)