提交 7be6c136 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Python 2.4 compatibility fixes

上级 bd3cac42
......@@ -12,18 +12,20 @@ __authors__ = ("Razvan Pascanu "
__copyright__ = "(c) 2010, Universite de Montreal"
__contact__ = "Razvan Pascanu <r.pascanu@gmail>"
import copy
import logging
import numpy
import theano
from theano.compile.pfunc import rebuild_collect_shared
from theano import gof
from theano import tensor, scalar
from theano.gof.python25 import all
from theano.tensor.basic import get_constant_value
import theano
################ Utility Functions and Classes #######################
# Logging function for sending warning or info
......
......@@ -2929,10 +2929,13 @@ def transpose(x, **kwargs):
class AdvancedIndexingError(TypeError):
"""A class raised as an exception when Subtensor
is asked to perform advanced indexing """
"""
Raised when Subtensor is asked to perform advanced indexing.
"""
def __init__(self, *args):
super(AdvancedIndexingError, self).__init__(*args)
TypeError.__init__( self, *args)
class Subtensor(Op):
"""Return a subtensor view
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论