본문 바로가기

전체 글227

[pytorch] difference between torch.Tensor and torch.LongTensor A [torch.Tensor] is a multiple dimensional matrix containing elements of a single data type. [torch.Tensor] is same as [torch.FloatTensor]. look at this table. Data typedtypeCPU tensorGPU tensor32-bit floating pointtorch.float32 or torch.floattorch.FloatTensortorch.cuda.FloatTensor64-bit floating pointtorch.float64 or torch.doubletorch.DoubleTensortorch.cuda.DoubleTensor16-bit floating pointtorc.. 2018. 7. 6.
Calculate Convolutional Layer Output size input image size -> 28x28x1 (width x height x channel)W: image width F: filter width P: padding size S: Stride number [Example:]input image (28 x 28 x 1) convolution layer filter size (5 x 5) and 20 filters stride = 1 padding = 0 So, the 1st output size is 24 x 24 x 20 (width x height x filters) * Addition: If there is max pooling layer after convolution filter, W: input width F: filter width S:.. 2018. 7. 5.
AWS RDS 에서 Mysql 설정 변경 (my.cnf/my.inf) 로컬이나 개인 서버에서 Mysql 설정을 변경하려면 my.cnf/my.inf파일을 수정하면 된다. 하지만, AWS RDS 에서는 서버에 Mysql을 직접 띄우기 때문에 내가 서버 설정파일로 가기 어렵다. (console 을 사용하면 갈 수 있나..?) 아무튼 내가 사용한 방법은 파라미터 그룹의 속성을 변경했다. '파라미터 그룹'은 해당 DB의 설정파일을 말한다. 예를 들어, autocommit 옵션을 변경하고 싶으면들어가서 '파라미터 편집'을 누른다. 그리고 수정하면 된다. 수정 후 인스턴스를 재 부팅 해 주면 적용된다. ----------------------------------------------------------------------------------------- 현재 나는 HeidiSQ.. 2018. 4. 3.
gcp 에서 jupyter notebook 실행 1. VPC Network - External IP Address 2. change to static / 고정으로 변경 3. Create Firewall Rule - add your port numbertcp: 4. Jupyter를 설치 했다면...After install jupyter notebook... - create config file$ jupyter notebook --generate-config 5. Edit Config file 6. add to jupyter_notebook_config.pyc = get_config()c.NotebookApp.ip = '*'c.NotebookApp.open_browser = Falsec.NotebookApp.port = - Save 7. $ jupyter.. 2018. 2. 23.
반응형