This file contains hidden or 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
| public class Semaphore { | |
| private int count; | |
| public Semaphore(int count) { | |
| this.count = count; | |
| } | |
| public synchronized void p() { | |
| count--; |
This file contains hidden or 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
| $ py map.py | |
| Definition in: | |
| File "map.py", line 11, in <module> | |
| abs_expr, abs_updates = T_map(lambda x: abs(x), [V]) | |
| File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/theano/scan.py", line 72, in map | |
| mode = mode) | |
| File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/theano/scan.py", line 443, in scan | |
| + shared_non_seqs)) | |
| Traceback (most recent call last): | |
| File "map.py", line 18, in <module> |
This file contains hidden or 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 python2.6 | |
| # -*- coding: utf-8 -*- | |
| __author__ = 'Justin S Bayer, bayer.justin@googlemail.com' | |
| import optparse | |
| import sys | |
| import time |
This file contains hidden or 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
| W = T.matrix('weights') | |
| initial = T.vector('initial') | |
| inpt = T.matrix('inpt') | |
| def one_step(x_t, h_tm1, W): | |
| expr = dot(h_tm1, W) + x_t | |
| return expr | |
| expr, _ = theano.scan( | |
| fn=one_step, |
This file contains hidden or 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 | |
| import sys | |
| import scipy as sp | |
| from scipy.special import gamma | |
| import pylab | |
| a = float(sys.argv[1]) |
This file contains hidden or 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
| /Users/bayerj/.pyxbld/temp.macosx-10.6-x86_64-2.6/pyrex/theano/scan_module/scan_perform.c:5058: error: ‘NPY_ULONG’ undeclared (first use in this function) | |
| /Users/bayerj/.pyxbld/temp.macosx-10.6-x86_64-2.6/pyrex/theano/scan_module/scan_perform.c:5071: error: ‘NPY_LONGLONG’ undeclared (first use in this function) | |
| /Users/bayerj/.pyxbld/temp.macosx-10.6-x86_64-2.6/pyrex/theano/scan_module/scan_perform.c:5084: error: ‘NPY_ULONGLONG’ undeclared (first use in this function) | |
| /Users/bayerj/.pyxbld/temp.macosx-10.6-x86_64-2.6/pyrex/theano/scan_module/scan_perform.c:5097: error: ‘NPY_FLOAT’ undeclared (first use in this function) | |
| /Users/bayerj/.pyxbld/temp.macosx-10.6-x86_64-2.6/pyrex/theano/scan_module/scan_perform.c:5110: error: ‘NPY_DOUBLE’ undeclared (first use in this function) | |
| /Users/bayerj/.pyxbld/temp.macosx-10.6-x86_64-2.6/pyrex/theano/scan_module/scan_perform.c:5123: error: ‘NPY_LONGDOUBLE’ undeclared (first use in this function) | |
| /Users/bayerj/.pyxbld/temp.macosx-10.6-x86_64-2.6/pyrex/theano/scan_module/scan_p |
This file contains hidden or 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
| bayerj@mackiley theanoscan$ hg diff setup.py | |
| diff -r 05a623a43c30 setup.py | |
| --- a/setup.py Mon May 16 19:28:17 2011 -0400 | |
| +++ b/setup.py Tue May 17 23:13:19 2011 +0200 | |
| @@ -117,8 +117,16 @@ | |
| def do_setup(): | |
| write_version_py() | |
| + | |
| + from Cython.Distutils import build_ext |
This file contains hidden or 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
| Traceback (most recent call last): | |
| File "/usr/local/bin/alchemy", line 7, in <module> | |
| execfile(__file__) | |
| File "/home/bayerj/laboratory/alchemy/scripts/alchemy", line 75, in <module> | |
| main(args.configfile, args.n_processes, args.root_path, args.std_redirect)) | |
| File "/home/bayerj/laboratory/alchemy/scripts/alchemy", line 47, in main | |
| for job in iterable: | |
| File "/home/bayerj/laboratory/alchemy/alchemy.py", line 52, in run | |
| f(**config) | |
| File "/home/bayerj/laboratory/laboratory/recnca.py", line 103, in run |
This file contains hidden or 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
| mod.cu: In function ‘PyObject* CudaNdarray_ptr_int_size(PyObject*, PyObject*)’: | |
| mod.cu:1928: warning: comparison between ‘enum cudaError’ and ‘enum cublasStatus_t’ | |
| mod.cu: In function ‘int CudaNdarray_gemm(float, const CudaNdarray*, const CudaNdarray*, float, CudaNdarray*)’: | |
| mod.cu:2753: warning: comparison between ‘enum cublasStatus_t’ and ‘enum cudaError_t’ | |
| mod.cu: In function ‘int CudaNdarray_sger(float, CudaNdarray*, CudaNdarray*, CudaNdarray*)’: | |
| mod.cu:2795: warning: comparison between ‘enum cublasStatus_t’ and ‘enum cudaError_t’ | |
| i686-apple-darwin10-gcc-4.2.1: python: No such file or directory | |
| i686-apple-darwin10-gcc-4.2.1: warning: '-x c++' after last input file has no effect | |
| i686-apple-darwin10-gcc-4.2.1: no input files | |
| =============================== |
This file contains hidden or 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
| ERROR: Optimization failure due to: local_subtensor_make_vector | |
| TRACEBACK: | |
| Traceback (most recent call last): | |
| File "/Users/bayerj/devel/third-party/Theano/theano/gof/opt.py", line 882, in process_node | |
| replacements = lopt.transform(node) | |
| File "/Users/bayerj/devel/third-party/Theano/theano/tensor/opt.py", line 869, in local_subtensor_make_vector | |
| shape_feature = node.env.shape_feature | |
| AttributeError: 'Env' object has no attribute 'shape_feature' | |
| ERROR: Optimization failure due to: local_useless_subtensor |