๋ถ๋ช
ํ x.shape๋ x๊ฐ ํ
์์ด๋ฉด ์๋ํ์ง๋ง ๋ณ์์ด๋ฉด ์๋ํ์ง ์์ต๋๋ค.
x.data.shape๋ฅผ ์ํํ ์ ์์ผ๋ฉฐ x.size() is x is a Variable, but not x.shape
์ด๊ฒ์ Variable์ด๋ Tensor์ด๋ ์๊ด์์ด ์ผ๊ด์ฑ์ ์ํด ๋์ผํด์ผ ํฉ๋๋ค.
์ด๊ฒ์ ๋ง์คํฐ์์ ์์ ๋์์ผ๋ฉฐ ๋ค์ ๋ฆด๋ฆฌ์ค์์ ์ ๊ณต๋ฉ๋๋ค. https://github.com/pytorch/pytorch/pull/2306
๋ค์ ๋ฆด๋ฆฌ์ค๋ 0.3 ๋๋ 0.2.x์ ๋๊น?
@acgtyrant ์๋ง 0.2.x
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด๊ฒ์ ๋ง์คํฐ์์ ์์ ๋์์ผ๋ฉฐ ๋ค์ ๋ฆด๋ฆฌ์ค์์ ์ ๊ณต๋ฉ๋๋ค. https://github.com/pytorch/pytorch/pull/2306