일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- 로지스틱회귀
- 프로그래머스 게임맵최단거리
- 프로그래머스 단어변환
- BOJ 1931 파이썬
- TensorFlow
- 백준 1931 파이썬
- 다중분류
- 백준 1541 파이썬
- 코테
- 프로그래머스bfs
- keras
- BOJ 1541 파이썬
- tensor
- 백준 잃어버린괄호 파이썬
- BOJ 1541
- 백준 잃어버린괄호
- Machine Learning
- LogisticRegression
- 프로그래머스 BFS
- BFS
- 머신러닝
- 프로그래머스 게임맵최단거리 파이썬
- ML
- 딥러닝
- BOJ 1931
- classification
- 코딩테스트
- 분류
- 프로그래머스 단어변환 파이썬
- 프로그래머스 단어변환 bfs
Archives
- Today
- Total
목록pyplot (1)
그래도해야지어떡해
Runtime Error : can't call numpy() on tensor that requires grad. use tensor.detach().numpy() instead
텐서를 pyplot을 사용하여 출력해서 보려는데, ts =[1, 2, 3, 4] plt.imshow(ts.cpu()) #ERROR Runtime Error : can't call numpy() on tensor that requires grad. use tensor.detach().numpy() instead 다음과 같은 에러가 출력됐다면 다음의 방법으로 해결이 가능하다. 텐서 ts의 뒤에 '.detach()'를 써준다. plt.imshow(ts.detach().cpu()) # WORKING 잘 동작하는것을 확인할 수 있다.
Error
2021. 11. 17. 11:32