Comments (7)
Think just commenting out the shutil.move
line avoids this error.
from cgt.
Perfect. Worked. FYI - one of the tests seem to fail. Is this my env problem?
gt.tests.test_imgproc.test_cudnn ... SKIP: CUDNN not enabled. Skipping this test
cgt.tests.test_imgproc.test_cpu_pool ... ok
cgt.tests.test_imgproc.test_im2col ... ok
cgt.tests.test_imgproc.test_lrn ... ok
cgt.tests.test_informative_errors.test_shape_err ... FAIL
cgt.tests.test_linreg.test_linreg ... ok
cgt.tests.test_multi_output.test_multi_output ... ok
cgt.tests.test_par_interp.test_sleeps ... ok
cgt.tests.test_par_interp.test_matmuls ... ok
cgt.tests.test_par_interp.test_update ... ok
cgt.tests.test_scalars.test_scalars('single', 'python') ... ok
cgt.tests.test_scalars.test_scalars('double', 'python') ... ok
cgt.tests.test_scalars.test_scalars('single', 'native') ... ok
cgt.tests.test_scalars.test_scalars('double', 'native') ... ok
======================================================================
ERROR: cgt.tests.test_examples.test_examples('CGT_FLAGS=backend=native python /Users/delip/Softwares/cgt/cgt/tests/../../examples/demo_cifar.py --unittest',)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/delip/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/delip/Softwares/cgt/cgt/tests/test_examples.py", line 7, in run_example
subprocess.check_call(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/Users/delip/anaconda/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command 'CGT_FLAGS=backend=native python /Users/delip/Softwares/cgt/cgt/tests/../../examples/demo_cifar.py --unittest' returned non-zero exit status 1
======================================================================
FAIL: cgt.tests.test_informative_errors.test_shape_err
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/delip/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/delip/Softwares/cgt/cgt/tests/test_informative_errors.py", line 24, in test_shape_err
assert "f = cgt.function([x,y],x+y)" in s.getvalue()
AssertionError:
-------------------- >> begin captured logging << --------------------
root: INFO: Simplification
root: INFO: Device targeting
root: INFO: Build execution graph
--------------------- >> end captured logging << ---------------------
from cgt.
Fixed the openblas download bug in e72e5a1. thanks for reporting
from cgt.
I don't know what's causing the other unit error. Could you add the line "print s.getvalue()" before the assertion failure in test_informative_errors.py?
from cgt.
Hi John, cool library!
I'm getting the same failure, so here's my output with the requested additional print
:
~/s/cgt ❯❯❯ nosetests
........S...SS..SF.........
======================================================================
FAIL: cgt.tests.test_informative_errors.test_shape_err
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/etzeng/src/cgt/cgt/tests/test_informative_errors.py", line 25, in test_shape_err
assert "f = cgt.function([x,y],x+y)" in s.getvalue()
AssertionError:
-------------------- >> begin captured stdout << ---------------------
Traceback (most recent call last):
File "/Users/etzeng/src/cgt/cgt/compilation.py", line 773, in __call__
instr.fire(self)
File "/Users/etzeng/src/cgt/cgt/compilation.py", line 493, in fire
interp.get(self.write_loc))
File "/Users/etzeng/src/cgt/cgt/core.py", line 777, in call
return self._func(*args)
File "/Users/etzeng/src/cgt/cgt/core.py", line 1303, in f
raise RuntimeError("mismatched shapes %s %s. Note that implicit broadcasting isn't allowed. Use the broadcast(...) function"%(x.shape, y.shape))
RuntimeError: mismatched shapes (3,) (4,). Note that implicit broadcasting isn't allowed. Use the broadcast(...) function
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Simplification
root: INFO: Device targeting
root: INFO: Build execution graph
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 27 tests in 12.610s
FAILED (SKIP=4, failures=1)
I'm on OSX so it could be some potential weirdness across different operating systems.
from cgt.
Thanks, I think I know what the problem is now.
from cgt.
Fixed
from cgt.
Related Issues (20)
- Product of diagonal elements may be `nan` HOT 1
- cgt.stack only supports stacking scalars HOT 1
- Error on tutorial
- Bug in graph simplification HOT 2
- OSX: Build fails with OpenBLAS dependency HOT 1
- Questions about Installation : cmake and windows HOT 1
- Memory consumption of native backend on Linux
- Random number generation and graph simplification HOT 2
- Negative reshaping check not enforced sometimes HOT 1
- Parameter indexing leads to an assertion error in module definition HOT 1
- Issues with shared scalar HOT 2
- Random number generation and modules (and simplification again)
- CIFAR Demo Error when using GPU
- Installation with anaconda
- Support for square root operation on Node HOT 2
- Simple operation breaks CGT
- Berkely BidMach and CGT
- How to build with python 3?
- Any reference to read? HOT 1
- Links in read-me are dead
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgt.