as_distribution¶
-
tfsnippet.as_distribution(distribution)¶ Convert a supported type of distribution into
Distributiontype.Parameters: distribution – A supported distribution instance. Supported types are: 1. Distribution, 2.zhusuan.distributions.Distribution.Returns: The wrapped distribution of Distributiontype.Return type: Distribution Raises: TypeError– If the specified distribution cannot be converted.