From: Tongzhou Wang Date: Wed, 6 Mar 2019 23:35:25 +0000 (-0800) Subject: fix exp fam. formula X-Git-Tag: accepted/tizen/6.5/unified/20211028.231830~956 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93768785ecc43009ec45305dec235e621fbb9150;p=platform%2Fupstream%2Fpytorch.git fix exp fam. formula Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17719 Differential Revision: D14349029 Pulled By: soumith fbshipit-source-id: cf016756a9319436f7379e8377f8bd1e1b672b40 --- diff --git a/torch/distributions/exp_family.py b/torch/distributions/exp_family.py index f686863..ab4ef2e 100644 --- a/torch/distributions/exp_family.py +++ b/torch/distributions/exp_family.py @@ -9,7 +9,7 @@ class ExponentialFamily(Distribution): .. math:: - p_{F}(x; \theta) = \exp(\langle t(x), \theta\rangle) - F(\theta) + k(x)) + p_{F}(x; \theta) = \exp(\langle t(x), \theta\rangle - F(\theta) + k(x)) where :math:`\theta` denotes the natural parameters, :math:`t(x)` denotes the sufficient statistic, :math:`F(\theta)` is the log normalizer function for a given family and :math:`k(x)` is the carrier