torch.rand
torch.rand
공식설명은 아래와 같다.
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) 사이의 값을 가지는 uniform distibution으로부터 argument에 맞는 개수의 random number를 뽑아서 tensor를 반환한다.
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 tensor의 shape을 결정한는 integers의 sequence이다. argument개수가 달라질 수 있고, list나 tuple같은 collection일 수도 있다.
Author And Source
이 문제에 관하여(torch.rand), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@optjyy/torch.rand저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)