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
- Multimodal Large Language Model
- 가중치 없이 모델 로드
- 특정 layer 추출
- MLLM
- 파라미터 수 확인
- def validation
- 강화학습
- 주식
- 모델 구조 변경
- 모델 freeze
- 특정 layer 동결
- 주식 용어정리
- Video Understanding
- 논문 작성 요령
- layer 추출
- vsocde 익스텐션
- Foundation Transformers
- mPLUG-2
- mqtt
- Instruction dataset
- KOSMOS-2
- 가상환경
- 논문리뷰
- DeepNet
- pretrained model layer
- 파라미터 수
- def train
- 모델 동결
- 논문 작성
- cnn
Archives
- Today
- Total
시작은 미약하였으나 , 그 끝은 창대하리라
[형변환] Tensor to Numpy / Numpy to Tensor 본문
. Numpy → Tensor
output = torch.Tensor(input) # 새로운 메모리에 할당.
output = torch.from_numpy(input) # 기존 메모리에 할당.
(where input is Numpy type, output is Tensor type)
2. Tensor → Numpy
output= np.array(input)
(where input is Tensor type, output is Numpy type)
(암기도 하려고 노력해야 외워진다.)
'인공지능 > 딥러닝 및 파이토치 기타 정리' 카테고리의 다른 글
[Convolution 의 Group 파라미터] torch.nn.Conv3d(group=1) (0) | 2024.02.03 |
---|---|
[파이썬 디버거] import pdb;pdb.set_trace() (0) | 2023.12.27 |
[1차원 추가 및 제거] Pytorch squeeze / unsqueeze (1) | 2023.12.23 |
[Cross entropy] 크로스 엔트로피의 index 값은 0부터 시작이다. (0) | 2023.12.23 |
[Pytorch] 모델 생성시, super().__init__() (0) | 2023.11.01 |
Comments