torch.rand
torch.rand
正式には以下の通り説明する.
torch.rand(size, out=None, dtype=None, layout=torch.strided, device=None, requires_grad=False) → Tensor
正式には以下の通り説明する.
torch.rand(size, out=None, dtype=None, layout=torch.strided, device=None, requires_grad=False) → Tensor
Returns a tensor filled with random numbers from a uniform distribution on the interval [0, 1)[0,1)
The shape of the tensor is defined by the variable argument size.
[0,1]間の値を持つ均一分布から,論点に合致する個数の乱数を抽出し,テンソルを返す.size (int...) – a sequence of integers defining the shape of the output tensor. Can be a variable number of arguments or a collection like a list or tuple.
「size」はoutputテンソル形状を決定する整数シーケンスである.パラメータの数は異なるかlistやtupleのような集合である可能性があります.Reference
この問題について(torch.rand), 我々は、より多くの情報をここで見つけました https://velog.io/@optjyy/torch.randテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol