teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

shijian

2020/08/13 15:58

投稿

bwnjnOEI
bwnjnOEI

スコア9

answer CHANGED
@@ -1,4 +1,4 @@
1
- Hi, today (2020.08.13), I take the same problem, now, I handle it.
1
+ Hi, today, I take the same problem, now, I handle it.
2
2
 
3
3
  It's very easy!
4
4
 

1

fghj

2020/08/13 15:58

投稿

bwnjnOEI
bwnjnOEI

スコア9

answer CHANGED
@@ -1,10 +1,10 @@
1
- Hi, today (2020.08.13), i take the same problem, now, i handle it.
1
+ Hi, today (2020.08.13), I take the same problem, now, I handle it.
2
2
 
3
3
  It's very easy!
4
4
 
5
- You should update your torch to new stable version (1.6.0)in your local (mac) and add a parameter in your code (let model run on your 'cpu') like this:
5
+ You should update your torch to new stable version (1.6.0) in your local (mac) and add a parameter in your code (let model run on your 'cpu') like this:
6
6
 
7
7
  ```
8
8
  torch.load('/Users/***/****/model.pt',map_location=torch.device('cpu'))
9
9
  ```
10
- then, it work!
10
+ then, it works!