Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
Tags
- Flutter
- BFS
- study book
- BOF
- Stream
- C++
- rao
- 백준
- Image Processing
- Dreamhack
- Got
- ARM
- pytorch
- llm을 활용 단어장 앱 개발일지
- MATLAB
- 영상처리
- FastAPI
- ML
- PCA
- DART
- Algorithm
- BAEKJOON
- MDP
- 파이토치 트랜스포머를 활용한 자연어 처리와 컴퓨터비전 심층학습
- fastapi를 사용한 파이썬 웹 개발
- Kaggle
- Computer Architecture
- system hacking
- Widget
- bloc
Archives
- Today
- Total
목록einops (1)
Bull
pip install einops from einops import rearrange x = torch.randn(64, 3, 32, 32) patch_size = 4 # 4 pixels print('x :', x.shape) patches = rearrange(x, 'b c (h s1) (w s2) -> b (h w) (s1 s2 c)', s1=patch_size, s2=patch_size) # 64 3 32 32 = 64 3 8*4 8*4 -> 64 8*8 4*4*3 print('patches :', patches.shape) x : torch.Size([64, 3, 32, 32]) patches : torch.Size([64, 64, 48]) rearrange(x, 'b c (h s1) (w s2)..
AI programming/pytorch
2024. 4. 13. 20:30