Skip to content

Commit

Permalink
Registration of extension does not work. Recommenting code and removi…
Browse files Browse the repository at this point in the history
…ng test.
  • Loading branch information
npyoung committed Jul 26, 2013
1 parent 52c746d commit 9bf650c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions mdp/gputheano/theano_extension.py
Expand Up @@ -24,12 +24,12 @@ def activate_theano():
"""

mdp.utils.mult = theano_mult
activate_extension('theano')
#activate_extension('theano')

def deactivate_theano():
"""De-activate theano extension."""
mdp.utils.mult = standard_mult
deactivate_extension('theano')
#deactivate_extension('theano')

class theanoize(object):
"""Context manager for the theano extension.
Expand Down
7 changes: 1 addition & 6 deletions mdp/test/test_theano.py
@@ -1,11 +1,6 @@
"""Test gputheano extension."""
import theano

def test_activate_deactivate():
mdp.gputheano.activate_theano()
assert 'theano' in mdp.get_active_extensions()
mdp.gputheano.deactivate_theano()
assert 'theano' not in mdp.get_active_extensions()
from _tools import *

def test_mult_remapping():
mdp.gputheano.activate_theano()
Expand Down

0 comments on commit 9bf650c

Please sign in to comment.