未验证 提交 71c5ec87 编写于 作者: M MayYouBeProsperous 提交者: GitHub

fix bug for TransformedDistribution (#46035)

上级 2a5bd7dc
......@@ -77,7 +77,7 @@ class TransformedDistribution(distribution.Distribution):
max(len(base.event_shape)-chain._domain.event_rank, 0)
super(TransformedDistribution, self).__init__(
transformed_shape[:len(transformed_shape) - transformed_event_rank],
transformed_shape[:len(transformed_shape) - transformed_event_rank])
transformed_shape[len(transformed_shape) - transformed_event_rank:])
def sample(self, shape=()):
"""Sample from ``TransformedDistribution``.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册