맥OS에서 NVM 사용하기
$ sudo curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash| import numpy as np | |
| import torch | |
| import random | |
| def set_random_seed(random_seed): | |
| torch.manual_seed(random_seed) | |
| torch.cuda.manual_seed(random_seed) | |
| torch.cuda.manual_seed_all(random_seed) # if use multi-GPU |
tasks.json과 launch.json 은 .vscode 디렉토리 하에 복사
libavcodec/h264dec.c
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <math.h> | |
| typedef struct Deque | |
| { | |
| int* buffer; |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <math.h> | |
| typedef struct Queue | |
| { | |
| int* buffer; |
| # -*- coding: utf-8 -*- | |
| """ | |
| SCAN: A Structural Clustering Algorithm for Networks | |
| As described in http://ualr.edu/nxyuruk/publications/kdd07.pdf | |
| """ | |
| from collections import deque | |
| import numpy as np | |
| from scipy.sparse import csr_matrix |
| " ------------------------------------------------------------- | |
| set enc=utf-8 | |
| set fenc=utf-8 | |
| set termencoding=utf-8 | |
| set nocompatible | |
| set autoindent | |
| set smartindent |