๋ฐ์ํ
model = custom_LSTM()
model = torch.nn.DataParallel(model)
with open(os.path.join('C:/Users/' + 'model_1.pt'), 'rb') as f:
model.load_state_dict(torch.load(f))
DataParallel ๋ก ํ์ต์ํจ ๋ชจ๋ธ์ loadํด์ ์ฌ์ฉํ ๋๋ ์์ ๊ฐ์ด torch.nn.DataParallel(model) ์ฝ๋๋ฅผ ์จ์ค์ผ error ์์ด ์ฌ์ฉ ๊ฐ๋ฅํ๋ค.
๋ฐ์ํ