๋ก์ปฌ์์๋ ๋ฌธ์ ์์ด ๋์๊ฐ๋ ์ฝ๋๊ฐ AWS ์๋ฒ๋ก ์ฎ๊ธฐ๋๊น ๋ค์๊ณผ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค.
terminate called after throwing an instance of 'std::runtime_error'
what(): random_device could not be read
๋์ ์ฒ์๋ณด๋ ์๋ฌ์ด๊ณ ๋ก์ปฌ์์๋ ๋์๊ฐ๋ ๋๊ฐํ๋ค.
๊ทธ๋๋ ๋คํํ ํ๋๋ง ์ถ๊ฐํ๋๋ฐ ์๋ฌ๊ฐ ๋ฐ์ํด์ ๊ธ๋ฐฉ ์์ธ์ ์ฐพ์ ์ ์์๋ค.
๋ด๊ฐ ์ถ๊ฐํ๊ฑด ultralytics์ด๊ณ , import torch๋ฅผ ํฌํจํ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ด๋ค.
๊ฒฐ๋ก ๋ถํฐ ๋งํ์๋ฉด ๋ผ์ด๋ธ๋ฌ๋ฆฌ import ์์์ ๋ฐ๋ฅธ AWS์์๋ง ๋ฐ์ํ๋ ์๋ฌ์๋ค.
torch์ tensorflow๋ฅผ ๋์์ import๋ฅผ ํ๋ฉด ์๋ฌ๊ฐ ๋ฐ์ํ๋๋ฐ,
torch๋ฅผ ๋จผ์ importํ๊ณ , tensorflow๋ฅผ ๋์ค์ importํ๋ฉด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋๋ค.
์ ์ด๋ฐ๊ฒ ๋ฐ์ํ๋์ง๋ ์ฐพ์ง ๋ชปํ๋๋ฐ
ํ๋ฒ ์์ธ์ ์ฐพ๊ณ ์ถ์๋ถ๋ค์ pytorch issues๋ฅผ ์ฐพ์๋ณด๋ฉด ์ข๊ฒ ๋ค.
https://github.com/pytorch/pytorch/issues/101152
import tensorflow
import torch
"""
terminate called after throwing an instance of 'std::runtime_error'
what(): random_device could not be read
Aborted (core dumped)
"""
import torch
import tensorflow
"""
no err
"""
'๐ฟ๐๐ฉ๐๐๐๐จ๐ > ๐ผ๐๐' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๋ฐฑ๊ทธ๋ผ์ด๋๋ก ํ์ด์ฌ ํ์ผ ์คํ ๊ด๋ฆฌํ๊ธฐ (0) | 2023.12.21 |
---|---|
AWS ํฌํธ(๋ฐฉํ๋ฒฝ) ์ฐ๊ฒฐ ์ค์ ํด๊ฒฐ [ufw ๋ฌธ์ ] (2) | 2023.10.17 |
AWS EC2 ๋์คํฌ ์ฉ๋ ๋๋ฆฌ๊ธฐ (0) | 2023.07.07 |
AWS pymysql [ 2006, "MySQL server has gone away (ConnectionResetError(104, 'Connection reset by peer'))] ์๋ฌ ํด๊ฒฐ (0) | 2023.06.27 |
EC2 ํ์ด์ฌ ์๋ฒ ํญ์ ์คํ๋๊ฒ ํ๊ธฐ (0) | 2023.06.27 |
๋๊ธ