Skip to content

Instantly share code, notes, and snippets.

View waTeim's full-sized avatar

Jeff Waller waTeim

View GitHub Profile
@waTeim
waTeim / output.txt
Created August 16, 2015 21:16
Importing caffemodel into Mocha
julia> include("test2.jl")
Configuring Mocha...
* CUDA disabled by default
* Native Ext disabled by default
Mocha configured, continue loading module...
16-Aug 17:11:57:INFO:root:Constructing net CIFAR10 on Mocha.CPUBackend...
16-Aug 17:11:57:INFO:root:Topological sorting 16 layers...
16-Aug 17:11:57:INFO:root:Setup layers...
16-Aug 17:11:58:INFO:root:Network constructed!
************************************************************
@waTeim
waTeim / ConvolutionDef.txt
Last active August 29, 2015 14:25
Caffe Layer ProtoBuf
type ConvolutionParameter
num_output::UInt32
bias_term::Bool
pad::UInt32
pad_h::UInt32
pad_w::UInt32
kernel_size::UInt32
kernel_h::UInt32
kernel_w::UInt32
group::UInt32
@waTeim
waTeim / BuildJuliaLLVMforCXX
Last active August 29, 2015 14:25
Combining Cxx and embedding in Julia
bizarro% make install
/Users/jeffw/src/julia/llvm-svn/contrib/install.sh 755 /Users/jeffw/src/julia/llvm-svn/usr/bin/julia* /Users/jeffw/src/julia/llvm-svn/julia-f9048e3ad5/bin/
cp -a /Users/jeffw/src/julia/llvm-svn/usr/libexec /Users/jeffw/src/julia/llvm-svn/julia-f9048e3ad5
# Copy over .dSYM directories directly
cp -a /Users/jeffw/src/julia/llvm-svn/usr/lib/*.dSYM /Users/jeffw/src/julia/llvm-svn/julia-f9048e3ad5/lib/julia
for suffix in julia julia-debug ; do \
for lib in /Users/jeffw/src/julia/llvm-svn/usr/lib/lib${suffix}*.dylib*; do \
if [ "${lib##*.}" != "dSYM" ]; then \
/Users/jeffw/src/julia/llvm-svn/contrib/install.sh 755 $lib /Users/jeffw/src/julia/llvm-svn/julia-f9048e3ad5/lib/julia ; \
fi \
@waTeim
waTeim / GoogleNetviaProtoBufJL.txt
Created July 14, 2015 05:26
GoogleNet via ProtoBuf.jl
julia> f = open("bvlc_googlenet.caffemodel")
IOStream(<file bvlc_googlenet.caffemodel>)
julia> include("generated/caffe.jl")
caffe
julia> x = ProtoBuf.readproto(f,caffe.NtParameter())
ERROR: UndefVarError: NtParameter not defined
julia> x = ProtoBuf.readproto(f,caffe.NetParameter())
@waTeim
waTeim / Windows Crash 2
Last active August 29, 2015 14:24
Output of npm test on windows using sys.ji
child_process: customFds option is deprecated, use stdio instead.
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x771510e2 -- RtlAnsiStringToUnicodeString at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RtlAnsiStringToUnicodeString at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
HeapFree at C:\Windows\system32\kernel32.dll (unknown line)
v8::Unlocker::~Unlocker at C:\Program Files\nodejs\node.exe (unknown line)
getipaddr at socket.jl:632
init_bind_addr at client.jl:203
init_parallel at client.jl:375
@waTeim
waTeim / JavaCall master
Last active August 29, 2015 14:23
Oracle JVM with signal handlers disabled
julia> jcall(jlm, "Sin", jdouble, (jdouble,), pi/2)
WARNING: gc_disable() is deprecated, use gc_enable(false) instead.
in depwarn at ./deprecated.jl:62
in gc_disable at deprecated.jl:49
in jcall at /home/jeffw/.julia/v0.4/JavaCall/src/JavaCall.jl:254
while loading no file, in expression starting on line 0
[Dynamic-linking native method java.lang.ClassLoader.findLoadedClass0 ... JNI]
[Dynamic-linking native method java.lang.ClassLoader.findBootstrapClass ... JNI]
#
# A fatal error has been detected by the Java Runtime Environment:
@waTeim
waTeim / test
Created June 29, 2015 03:16
Oracle Java execution in Julia
jeffw@ub0:~/src/JavaCall.jl/src$ julia test.jl
Loaded /usr/lib/jvm/java-7-oracle/jre/lib/amd64/server/libjvm.so
[Dynamic-linking native method java.lang.Object.registerNatives ... JNI]
[Registering JNI native method java.lang.Object.hashCode]
[Registering JNI native method java.lang.Object.wait]
[Registering JNI native method java.lang.Object.notify]
[Registering JNI native method java.lang.Object.notifyAll]
[Registering JNI native method java.lang.Object.clone]
[Dynamic-linking native method java.lang.System.registerNatives ... JNI]
[Registering JNI native method java.lang.System.currentTimeMillis]
@waTeim
waTeim / julia gdb session example
Last active October 14, 2019 17:49
A julia GDB session example
jeffw@dub1:~$ ps auxww | grep julia
jeffw 5646 1.5 11.3 8587092 85668 pts/0 S+ 19:53 0:03 julia-debug
jeffw 5886 0.0 0.1 9392 896 pts/1 S+ 19:57 0:00 grep --color=auto julia
jeffw@dub1:~$ gdb -p 5646
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
@waTeim
waTeim / JuliaMakeInstall.txt
Created May 20, 2015 07:36
Output of Julia make install
bizarro% make install
CC usr/bin/stringreplace
. /Users/jeffw/src/julia/deps/julia-env/bin/activate && sphinx-build -b html -d _build/doctrees . _build/html
Making output directory...
Running Sphinx v1.2.3
loading pickled environment... not yet created
building [html]: targets for 74 source files that are out of date
updating environment: 74 added, 0 changed, 0 removed
reading sources... [100%] stdlib/test
/Users/jeffw/src/julia/doc/stdlib/collections.rst:121: WARNING: duplicate object description of Base.length, other instance in /Users/jeffw/src/julia/doc/stdlib/arrays.rst, use :noindex: for one of them
@waTeim
waTeim / DumpBinOutput.txt
Created May 18, 2015 04:49
Embedding Julia with gyp for node-julia attempt
Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file C:\Julia\julia-f875a541be\bin\libjulia.dll
File Type: DLL
Section contains the following exports for libjulia.dll