1. 08 11月, 2016 3 次提交
    • notoraptor's avatar
      Update · e8a6267e
      notoraptor 提交于
      Commented code removed, and assertion added to check that call to sys.getrefcount does nots changes the refcount.
      e8a6267e
    • notoraptor's avatar
      Update to fix python 3 error · 27f49908
      notoraptor 提交于
      Update test function test_pycuda_memory_to_theano() to fix Python 3 error.
      
      The refcount of a variable seems to be different between Python 2 and Python 3. So it seems better to stock an initial refcount in a variable and then do the checkings with that variable instead of directly using comparing to constant values.
      
      Tests passed with Python 3 (Anaconda):
      
      ```
      $ nosetests --verbose --nocapture theano/misc/tests/test_pycuda_theano_simple.py
      Run pycuda only example to test that pycuda works. ... ok
      Simple example with pycuda function and Theano CudaNdarray object. ... ok
      theano.misc.tests.test_pycuda_theano_simple.test_pycuda_memory_to_theano ... 4
      gpuarray ref count before creating a CudaNdarray 4
      strides (20, 5, 1)
      gpuarray ref count after creating a CudaNdarray 5
      gpuarray ref count after deleting the CudaNdarray 4
      ok
      
      ----------------------------------------------------------------------
      Ran 3 tests in 0.297s
      
      OK
      ```
      27f49908
    • Frédéric Bastien's avatar
      Merge pull request #4355 from Saizheng/master · 1db72747
      Frédéric Bastien 提交于
      #2801:subtensor-incsubtensor
      1db72747
  2. 07 11月, 2016 1 次提交
  3. 05 11月, 2016 19 次提交
  4. 04 11月, 2016 17 次提交