- VirtualBox 설치
- Ubuntu 개발자용 Desktop 받기 https://www.ubuntu.com/download/desktop
- VirtualBox에서 가상머신을 만들고 시작
- 받아둔 Ubuntu .ISO를 지정
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import urllib | |
import urllib2 | |
import json | |
import codecs | |
url = "https://play.google.com/store/getreviews" | |
values = { | |
"reviewType": "0", "pageNum": "2", | |
"id": |
이 글을 작성하는 시점(2017-01-11)에서 분산 텐서플로우의 관련 자료 부족으로 확실히 분산 학습이 되는지 확인이 되지 않았습니다. 안타깝지만 본 내용은 참고만 하시기 바랍니다.
원문 [https://www.tensorflow.org/how_tos/distributed/] (https://www.tensorflow.org/how_tos/distributed/)
- 클러스터는 텐서플로우 그래프의 분산 수행에 참여하는 테스크들의 집합
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import random | |
import pytest | |
import numpy as np | |
EPS = 0.1 | |
ALPHA = 0.1 | |
MAX_EPISODE = 100000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Caculator for Python Korea GangNam Study | |
""" | |
import re | |
from collections import deque |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
# A docker container with the Nvidia kernel module and CUDA drivers installed | |
ENV CUDA_RUN http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda_6.5.14_linux_64.run | |
RUN apt-get update && apt-get install -q -y \ | |
wget \ | |
build-essential | |
RUN cd /opt && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
ENV PYTHONPATH /opt/caffe/python | |
# Add caffe binaries to path | |
ENV PATH $PATH:/opt/caffe/.build_release/tools | |
# Get dependencies | |
RUN apt-get update && apt-get install -y \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/python/caffe/io.py b/python/caffe/io.py | |
index fc96266..02b2ffb 100644 | |
--- a/python/caffe/io.py | |
+++ b/python/caffe/io.py | |
@@ -251,9 +251,13 @@ class Transformer: | |
ms = (1,) + ms | |
if len(ms) != 3: | |
raise ValueError('Mean shape invalid') | |
- if ms != self.inputs[in_][1:]: | |
- raise ValueError('Mean shape incompatible with input shape.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" My .vimrc | |
syntax on | |
set ic | |
set tabstop=4 | |
set shiftwidth=4 | |
set autoindent | |
set hlsearch | |
set smartindent | |
set backspace=2 |