Giter Site home page Giter Site logo

Comments (7)

zxie avatar zxie commented on July 19, 2024

Think just commenting out the shutil.move line avoids this error.

from cgt.

delip avatar delip commented on July 19, 2024

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.

joschu avatar joschu commented on July 19, 2024

Fixed the openblas download bug in e72e5a1. thanks for reporting

from cgt.

joschu avatar joschu commented on July 19, 2024

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.

erictzeng avatar erictzeng commented on July 19, 2024

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.

joschu avatar joschu commented on July 19, 2024

Thanks, I think I know what the problem is now.

from cgt.

joschu avatar joschu commented on July 19, 2024

Fixed

from cgt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.