ó
àÆ÷Xc           @` sƒ   d  d l  m Z m Z m Z d  d l m Z d  d l Z d  d l m Z m	 Z	 d  d l
 m Z d  d l j Z d „  Z d „  Z d S(   i    (   t   absolute_importt   print_functiont   division(   t   SkipTestN(   t   Modet   AddFeatureOptimizer(   t   NoOutputFromInplacec    	      C` sB  t  j ƒ  }  t  j ƒ  } t  j |  | ƒ } t  j | ƒ } t j |  | g | d d ƒ} | j j j d j	 j
 } t | d ƒ rŽ d | j k s” t ‚ t j j s¯ t d ƒ ‚ n  t t ƒ  ƒ } t d d d d	 ƒ j | d
 f ƒ } t j |  | g | d | ƒ} | j j j d j	 j
 } t | d ƒ s>d | j k s>t ‚ d  S(   Nt   modet   FAST_RUNi    t   destroy_maps   Need cxx for this testt   linkert   cvmt	   optimizert   fast_rung33333óH@(   t   Tt   matrixt   dott   tanht   theanot   functiont   makert   fgrapht   outputst   ownert   opt   hasattrR	   t   AssertionErrort   configt   cxxR   R   R   R   t   register(	   t   xt   yt   at   bt
   fct_no_optR   t   optt   mode_optt   fct_opt(    (    s>   /tmp/pip-build-X4mzal/theano/theano/compile/tests/test_mode.pyt   test_no_output_from_implace   s    $$c          C` s#   t  j d d ƒ }  |  j d ƒ d  S(   NR   t   merget   fast_compile(   R   R   t	   including(   R   (    (    s>   /tmp/pip-build-X4mzal/theano/theano/compile/tests/test_mode.pyt   test_including$   s    (   t
   __future__R    R   R   t   nose.plugins.skipR   R   t   theano.compile.modeR   R   t   theano.gof.toolboxR   t   theano.tensort   tensorR   R&   R*   (    (    (    s>   /tmp/pip-build-X4mzal/theano/theano/compile/tests/test_mode.pyt   <module>   s   	