sandartchip.log
로그인
sandartchip.log
로그인
torch.transpose
boingboing
·
2024년 10월 30일
팔로우
0
PyTorch
바꿀 배열과 바꿀 차원 두 개를 받고, 그 둘의 차원을 바꿈
예시
x
=
torch
.
rand
(
16
,
32
,
3
)
y
=
x
.
tranpose
(
0
,
2
)
# [3, 32, 16]
0과 2의 차원을 바꿔서 그 둘의 차원이 바뀜.
boingboing
팔로우
이전 포스트
ValueError: operands could not be broadcast together with shapes (256,256) (3,) (256,256)
다음 포스트
train_test_split
0개의 댓글
댓글 작성