1. 09 11月, 2016 6 次提交
    • notoraptor's avatar
      Flake8. · 063fa257
      notoraptor 提交于
      063fa257
    • notoraptor's avatar
      New update. · b2ae1db6
      notoraptor 提交于
      CPU op MaxAndArgmax rewritten so that it now takes the axes
      as a parameter op. Same update for GPU op GpuMaxAndArgmax.
      
      max_and_argmax wrapper rewritten to fully check the axis before
      passing it to MaxAndArgmax.
      
      Some other files have also been updated to ensure that the
      optimization which replace CPU op by GPU op works well and
      that all tests involving MaxAndArgmax still work well after
      the updates.
      
      GPU op rewritten to handle the last libgpuarray update.
      
      test_reduction rewritten. It now tests also 0-d arrays (scalars).
      
      I have run the following tests with success. The new
      update of libgpuarray has been downloaded, compiled
      and fully installed before running these tests.
      
      nosetests -v theano/gpuarray/tests/test_opt.py
          # There is 1 fail here, but not related to MaxAndArgmax:
          # ERROR: theano.gpuarray.tests.test_opt.test_local_lift_abstractconv_gpu_shape
          # RuntimeError: cuDNN is required for convolution and pooling
      nosetests -v theano/tensor/nnet/tests/test_nnet.py
      nosetests -v theano/tensor/tests/test_opt_uncanonicalize.py
      nosetests -v theano/tensor/tests/test_basic.py
      THEANO_FLAGS=floatX=float32,profile=True,profiling.n_ops=1000,profiling.n_apply=1000,profiling.ignore_first_call=True,profiling.destination=profiling.log nosetests --nocapture --verbose theano/gpuarray/tests/test_reduction.py
      
      Prevent Flake8!
      b2ae1db6
    • notoraptor's avatar
      flake8 error ... · c2835d19
      notoraptor 提交于
      c2835d19
    • notoraptor's avatar
      Update. Many of @abergeron comments have been taken account. · 0d197386
      notoraptor 提交于
      Tests have been rewritten, and they run so that
      a CPU computation and a GPU computation are always
      performed (separately) on the same input.
      
      This allow to run the tests with Theano profiling
      flags and then compare the execution time of
      MaxAndArgmax (CPU) and GpuMaxAndArgmax (GPU).
      
      Some code has also been modified in theano/tensor/basic.py,
      related to MaxAndArgmax, to make the API more uniform
      and to put most of axis checking in maxandargmax wrapper
      instead of in make_node functions of (Gpu)MaxAndArgmax.
      0d197386
    • notoraptor's avatar
      Flake8 error (again ! ...) · 37115ad1
      notoraptor 提交于
      37115ad1
    • notoraptor's avatar
      This is my proposal for GpuMaxAndArgmax (issue #1399). · 218d006c
      notoraptor 提交于
      GpuMaxAndArgmax op is implemented in a separate file
      in theano/gpuarray.
      
      A test script has also been written.
      
      To integrate this op in Theano, an optimization has been
      added to ttheano/gpuarray/opt.py.
      218d006c
  2. 08 11月, 2016 19 次提交
  3. 07 11月, 2016 2 次提交
  4. 05 11月, 2016 13 次提交