theano/gof/op.py
def __get_op_params(self):
        """
        Returns a list of (name, value) pairs that will be turned into
        macros for use within the op code.

        The names must be strings that are not a C keyword and the
        values must be strings of literal C representations.

        If op uses a :class:`theano.gof.params_type.ParamsType` as ``params_type``,
        it returns:
         - a default macro ``PARAMS_TYPE`` which defines the class name of the
           corresponding C struct.
         - a macro ``DTYPE_PARAM_key`` for every ``key`` in the ParamsType for which associated
           type implements the method :func:`theano.gof.type.CLinkerType.c_element_type`.
           ``DTYPE_PARAM_key`` defines the primitive C type name of an item in a variable
           associated to ``key``.

        """
        if hasattr(self, 'params_type') and isinstance(self.params_type, theano.gof.ParamsType):
            wrapper = self.params_type
            params = [('PARAMS_TYPE', wrapper.name)]
            for i in range(wrapper.length):
                try:
                    # NB (reminder): These macros are currently used only in ParamsType example test
                    # (`theano/gof/tests/test_quadratic_function.c`), to demonstrate how we can
                    # access params dtypes when dtypes may change (e.g. if based on theano.config.floatX).
                    # But in practice, params types generally have fixed types per op.
                    params.append(('DTYPE_PARAM_' + wrapper.fields[i], wrapper.types[i].c_element_type()))
                except utils.MethodNotDefined:
                    pass
            return params
        return []

        Returns a list of (name, value) pairs that will be turned into
        macros for use within the op code.

        The names must be strings that are not a C keyword and the
        values must be strings of literal C representations.

        If op uses a :class:`theano.gof.params_type.ParamsType` as ``params_type``,
        it returns:
         - a default macro ``PARAMS_TYPE`` which defines the class name of the
           corresponding C struct.
         - a macro ``DTYPE_PARAM_key`` for every ``key`` in the ParamsType for which associated
           type implements the method :func:`theano.gof.type.CLinkerType.c_element_type`.
           ``DTYPE_PARAM_key`` defines the primitive C type name of an item in a variable
           associated to ``key``.

        
Returns a list of (name, value) pairs that will be turned into
macros for use within the op code.

The names must be strings that are not a C keyword and the
values must be strings of literal C representations.


Returns a list of ( name value ) pairs that will be turned into macros for use within the op code . The names must be strings that are not a C keyword and the values must be strings of literal C representations .
def __get_op_params(self):
        if hasattr(self, 'params_type') and isinstance(self.params_type, theano.gof.ParamsType):
            wrapper = self.params_type
            params = [('PARAMS_TYPE', wrapper.name)]
            for i in range(wrapper.length):
                try:
                    params.append(('DTYPE_PARAM_' + wrapper.fields[i], wrapper.types[i].c_element_type()))
                except utils.MethodNotDefined:
                    pass
            return params
        return []
def __get_op_params ( self ) : if hasattr ( self , 'params_type' ) and isinstance ( self . params_type , theano . gof . ParamsType ) : wrapper = self . params_type params = [ ( 'PARAMS_TYPE' , wrapper . name ) ] for i in range ( wrapper . length ) : try : params . append ( ( 'DTYPE_PARAM_' + wrapper . fields [ i ] , wrapper . types [ i ] . c_element_type ( ) ) ) except utils . MethodNotDefined : pass return params return [ ]
Returns a list of (name, value) pairs that will be turned into
macros for use within the op code.
Returns a list of ( name value ) pairs that will be turned into macros for use within the op code .
"""
        Returns a list of (name, value) pairs that will be turned into
        macros for use within the op code.

        The names must be strings that are not a C keyword and the
        values must be strings of literal C representations.

        If op uses a :class:`theano.gof.params_type.ParamsType` as ``params_type``,
        it returns:
         - a default macro ``PARAMS_TYPE`` which defines the class name of the
           corresponding C struct.
         - a macro ``DTYPE_PARAM_key`` for every ``key`` in the ParamsType for which associated
           type implements the method :func:`theano.gof.type.CLinkerType.c_element_type`.
           ``DTYPE_PARAM_key`` defines the primitive C type name of an item in a variable
           associated to ``key``.

        """ # NB (reminder): These macros are currently used only in ParamsType example test # (`theano/gof/tests/test_quadratic_function.c`), to demonstrate how we can # access params dtypes when dtypes may change (e.g. if based on theano.config.floatX). # But in practice, params types generally have fixed types per op.
self