本文簡要介紹python語言中 torch.distributions.exponential.Exponential
的用法。
用法:
class torch.distributions.exponential.Exponential(rate, validate_args=None)
基礎:
torch.distributions.exp_family.ExponentialFamily
創建由
rate
參數化的 index 分布。例子:
>>> m = Exponential(torch.tensor([1.0])) >>> m.sample() # Exponential distributed with rate=1 tensor([ 0.1046])
相關用法
- Python PyTorch ELU用法及代碼示例
- Python PyTorch EndOnDiskCacheHolder用法及代碼示例
- Python PyTorch EmbeddingBag用法及代碼示例
- Python PyTorch Enumerator用法及代碼示例
- Python PyTorch EmbeddingBagCollection.state_dict用法及代碼示例
- Python PyTorch ElasticAgent用法及代碼示例
- Python PyTorch Embedding用法及代碼示例
- Python PyTorch EtcdServer用法及代碼示例
- Python PyTorch EmbeddingBag.from_pretrained用法及代碼示例
- Python PyTorch EmbeddingBagCollection用法及代碼示例
- Python PyTorch EtcdRendezvousHandler用法及代碼示例
- Python PyTorch EmbeddingBagCollection.named_buffers用法及代碼示例
- Python PyTorch EmbeddingCollection用法及代碼示例
- Python PyTorch Embedding.from_pretrained用法及代碼示例
- Python PyTorch frexp用法及代碼示例
- Python PyTorch jvp用法及代碼示例
- Python PyTorch cholesky用法及代碼示例
- Python PyTorch vdot用法及代碼示例
- Python PyTorch ScaledDotProduct.__init__用法及代碼示例
- Python PyTorch gumbel_softmax用法及代碼示例
- Python PyTorch get_tokenizer用法及代碼示例
- Python PyTorch saved_tensors_hooks用法及代碼示例
- Python PyTorch positive用法及代碼示例
- Python PyTorch renorm用法及代碼示例
- Python PyTorch AvgPool2d用法及代碼示例
注:本文由純淨天空篩選整理自pytorch.org大神的英文原創作品 torch.distributions.exponential.Exponential。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。