Skip to content

Instantly share code, notes, and snippets.

View tongda's full-sized avatar

Damon Da Tong tongda

View GitHub Profile
import numpy as np
import tensorflow as tf
from tensorflow.contrib.tensorboard.plugins import projector
from process_data import process_data
VOCAB_SIZE = 50000
BATCH_SIZE = 128
EMBED_SIZE = 128 # dimension of the word embedding vectors
SKIP_WINDOW = 1 # the context window
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
from tensorflow.contrib.tensorboard.plugins import projector
from process_data import process_data
# The function localize takes the following arguments:
#
# colors:
# 2D list, each entry either 'R' (for red cell) or 'G' (for green cell)
#
# measurements:
# list of measurements taken by the robot, each entry either 'R' or 'G'
#
# motions:
# list of actions taken by the robot, each entry of the form [dy,dx],
bazel build --copt="-D_GLIBCXX_USE_CXX11_ABI=0" -c opt //tensorflow/core/user_ops:zero_out.so
INFO: Found 1 target...
INFO: From Compiling external/protobuf/src/google/protobuf/util/internal/json_escaping.cc:
external/protobuf/src/google/protobuf/util/internal/json_escaping.cc:90:13: warning: unused function 'IsHighSurrogate' [-Wunused-function]
inline bool IsHighSurrogate(uint16 c) {
^
external/protobuf/src/google/protobuf/util/internal/json_escaping.cc:102:13: warning: unused function 'IsLowSurrogate' [-Wunused-function]
inline bool IsLowSurrogate(uint16 c) {
^
external/protobuf/src/google/protobuf/util/internal/json_escaping.cc:122:13: warning: unused function 'IsSupplementalCodePoint' [-Wunused-function]
@tongda
tongda / kubernetes-ubuntu-cluster
Created November 29, 2015 10:33
Vagrantfile that used for creating kubernetes ubuntu cluster.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 1
end
config.vm.network "private_network", type: "dhcp"
body {
font-size: 40px !important;
}
h1 {
font-size: 64px !important;
}
h2 {
font-size: 52px !important;