pytorch: model의 device 얻는 방법

djlee·2023년 3월 17일
0

model에 적용된 device를 얻고 싶을 때는 아래 코드를 사용하면 돼요.

next(model.parameters()).device

0개의 댓글