torch.Tensor.geometric_¶
- Tensor.geometric_(p, *, generator=None) Tensor ¶
用从几何分布中抽取的元素填充
self
张量注意
torch.Tensor.geometric_()
k-th 试验是第一次成功,因此在 中抽取样本,而torch.distributions.geometric.Geometric()
-th 试验是第一次成功,因此在 中抽取样本。
用从几何分布中抽取的元素填充 self
张量
注意
torch.Tensor.geometric_()
k-th 试验是第一次成功,因此在 中抽取样本,而 torch.distributions.geometric.Geometric()
-th 试验是第一次成功,因此在 中抽取样本。