ํธ์ง๊ธฐ ์ฐฝ์์ ํ์ผ์ ์คํํ์ฌ pytorch๋ฅผ ๋ ๋ฒ ์ด์ ๊ฐ์ ธ ์ค๋ฉด IPython ์ฝ์์์ ๋ฐํ์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
pytorch 0.4.0์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
์์ธ๋ ์์ต๋๋ค. ๊ทธ๋ฌ๋ ๊ธฐ์กด ๋ชจ๋์ ์ปดํ์ผ / ๋ค์๋ก๋ํ๋ฉด ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ ๊ฒ ๊ฐ์ต๋๋ค.
์๋ ๋จ๊ณ๋ ๋๋ฝ๊ณ ์ด์ํ ํด๊ฒฐ์ฑ
์
๋๋ค.
Traceback (most recent call last):
File "<ipython-input-3-bc7ab1fdfb9b>", line 1, in <module>
runfile('/Users/aaa/.spyder-py3/temp.py', wdir='/Users/aaa/.spyder-py3')
File "/usr/local/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "/usr/local/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "/Users/aaa/.spyder-py3/temp.py", line 7, in <module>
import torch
File "/usr/local/lib/python3.6/site-packages/torch/__init__.py", line 184, in <module>
from .tensor import Tensor
File "/usr/local/lib/python3.6/site-packages/torch/tensor.py", line 12, in <module>
class Tensor(torch._C._TensorBase):
File "/usr/local/lib/python3.6/site-packages/torch/tensor.py", line 170, in Tensor
""")
RuntimeError: method 'detach' already has a docstring
IPython >=4.0 : 6.3.1 (OK)
cython >=0.21 : 0.28.2 (OK)
jedi >=0.9.0 : 0.12.0 (OK)
nbconvert >=4.0 : 5.3.1 (OK)
numpy >=1.7 : 1.14.1 (OK)
pandas >=0.13.1 : 0.22.0 (OK)
psutil >=0.3 : 5.4.5 (OK)
pycodestyle >=2.3: 2.4.0 (OK)
pyflakes >=0.6.0 : 1.6.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 1.8.4 (OK)
qtconsole >=4.2.0: 4.3.1 (OK)
rope >=0.9.4 : 0.10.7 (OK)
sphinx >=0.6.6 : 1.7.4 (OK)
sympy >=0.7.3 : 1.1.1 (OK)
์ ๊ณ ํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. ๋ค์ ๋ฒ๊ทธ ์์ ๋ฆด๋ฆฌ์ค์์์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ๊ฒ์ ๋๋ค.
์ฐธ๊ณ ์ฌํญ : UMR ๋ธ๋๋ฆฌ์คํธ ๋ชจ๋ ๋ชฉ๋ก์ pytorch๋ฅผ ์ถ๊ฐํด์ผํฉ๋๋ค.
@dalthviz , ์์ ๋ฉ๋ชจ์
์คํ์ด๋์์ pytorch๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค ( "pip install --user torch"๋ก ์ค์น). ํ์ผ์ ๋ค์ ์คํํ ๋ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค ( "RuntimeError : method 'detach'already has a docstring"). UMR์ ๋นํ์ฑํํ๋ฉด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์์ต๋๋ค. ๊ทธ๋ฌ๋ ์ด์ ๋ฅผ ์ฐพ๋ ๋์ ๋ ๊ฐ์ง๋ฅผ ๋ฐ๊ฒฌํ์ต๋๋ค.