Skip to content

Instantly share code, notes, and snippets.

View AndreasMadsen's full-sized avatar

Andreas Madsen AndreasMadsen

View GitHub Profile
<pad>
<EOS>
<OOV>
.
?x0
?x1
M1
}
{
WHERE
def ilog256_speed(original_num):
# Exponential search to find upper bound
ilog_upper = 8
while (original_num >> ilog_upper) > 0:
ilog_upper = ilog_upper << 1
# The lower bound is the previuse step
ilog_lower = ilog_upper >> 1
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/stream_executor/cuda/cuda_driver.cc:590] creating context when one is currently active; existing: 0x118af890
W tensorflow/stream_executor/cuda/cuda_driver.cc:590] creating context when one is currently active; existing: 0x118b36a0
W tensorflow/stream_executor/cuda/cuda_driver.cc:590] creating context when one is currently active; existing: 0x118b74e0
INFO:tensorflow:0314:14:49:41.625:sg_train.py:312] Training started from epoch[001]-step[0].
W tensorflow/core/common_runtime/bfc_allocator.cc:274] **************************************************************************************_**********xxx
W tensorflow/core/co
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/common_runtime/bfc_allocator.cc:274] ****************************************************************************************************
W tensorflow/core/common_runtime/bfc_allocator.cc:275] Ran out of memory trying to allocate 148.09MiB. See logs for memory state.
W tensorflow/core/framework/op_kernel.cc:993] Resource exhausted: OOM when allocating tensor with shape[2560,892,1,17]
Traceback (most recent call last):
File "/zhome/ff/2/77654/stdpy3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1022, in _do_call
return fn(*args)
File "/zhome/ff/2/77654/stdpy3/lib/python3.6/site-p
import numpy as np
import tensorflow as tf
import sugartensor as stf
# set log level to debug
stf.sg_verbosity(10)
@stf.sg_layer_func
@AndreasMadsen
AndreasMadsen / log
Created January 19, 2017 16:22
tensorflow test output
INFO: Found 1289 targets and 839 test targets...
INFO: From Building tensorflow/java/SessionTest.jar (1 source file):
Note: tensorflow/java/src/test/java/org/tensorflow/SessionTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
INFO: From Linking tensorflow/core/platform/default/gpu/libcupti_wrapper.pic.a:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: bazel-out/local-py3-opt/bin/tensorflow/core/platform/default/gpu/_objs/cupti_wrapper/tensorflow/core/platform/default/gpu/cupti_wrapper.pic.o has no symbols
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning for library: bazel-out/local-py3-opt/bin/tensorflow/core/platform/default/gpu/libcupti_wrapper.pic.a the table of contents is empty (no object file members in the library define global symbols)
INFO: From Linking tensorflow/core/platform/default/gpu/libcupti_wrapper.a:
/Applications/Xcode.app/Con
/Users/Andreas/Sites/tensorflow/_python_build/tensorflow/python/framework/function.py:969: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead
argspec = inspect.getargspec(func)
EE.
======================================================================
ERROR: testDouble (__main__.SparsemaxTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tensorflow/tensorflow/contrib/sparsemax/python/kernel_tests/sparsemax_test.py", line 258, in testDouble
self._test_dtype('float64')
File "tensorflow/tensorflow/contrib/sparsemax/python/kernel_tests/sparsemax_test.py", line 224, in _test_dtype
@AndreasMadsen
AndreasMadsen / dprof.json
Created October 19, 2016 08:15
dprof.json
This file has been truncated, but you can view the full file.
{"total":215429615,"version":"0.16.0","root":{"name":"root","parent":null,"uid":0,"init":0,"destroy":4636732,"before":[0],"after":[4504575],"unrefed":false,"stack":[{"description":"Module._compile (module.js:541:32)","filename":"module.js","line":541,"collum":32},{"description":"Object.Module._extensions..js (module.js:550:10)","filename":"module.js","line":550,"collum":10},{"description":"Module.load (module.js:458:32)","filename":"module.js","line":458,"collum":32},{"description":"tryModuleLoad (module.js:417:12)","filename":"module.js","line":417,"collum":12},{"description":"Function.Module._load (module.js:409:3)","filename":"module.js","line":409,"collum":3},{"description":"Module.require (module.js:468:17)","filename":"module.js","line":468,"collum":17},{"description":"require (internal/module.js:20:19)","filename":"internal/module.js","line":20,"collum":19},{"description":"Object.<anonymous> (/Users/Andreas/Sites/node_modules/dprof/test/scripts/recursive.js:2:1)","filename":"/Users/Andreas/Sites/node_m
@AndreasMadsen
AndreasMadsen / log.txt
Created October 15, 2016 06:57
gcc: error trying to exec 'as': execvp: No such file or directory
$ yes "" | CC=gcc CXX=g++ ./configure
Found possible Python library paths:
/zhome/ff/2/77654/stdpy3/lib/python3.5/site-packages
Please input the desired Python library path to use. Default is [/zhome/ff/2/77654/stdpy3/lib/python3.5/site-packages]
/zhome/ff/2/77654/stdpy3/lib/python3.5/site-packages
INFO: Reading 'startup' options from /zhome/ff/2/77654/.bazelrc: --batch --output_user_root=/work1/s123598/.bazel
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
INFO: Reading 'startup' options from /zhome/ff/2/77654/.bazelrc: --batch --output_user_root=/work1/s123598/.bazel
INFO: All external dependencies fetched successfully.
Configuration finished
#!/usr/bin/env Rscript
library(stringr);
library(plyr);
dat = read.csv(file('stdin'), strip.white=TRUE);
dat = data.frame(dat);
dat$group = str_extract(dat$filename, "^[^/]+");
byfile = ddply(dat, c('filename'), function(subdat) {