I tried the for loop with standard python code:

   1.         EPhiTPhi = np.zeros((50,50))     
   2.         for i in range(0, 900):
   3.            D_n_temp = SIGMA_trf[i,:][None,None, :]  
   4.           d_n_temp = MU[i,:][None,None, : 
   5.                         EPhiTPhi = EPhiTPhi + T.exp(-0.5 * (
   S_hat_minus**2 * D_n_temp).sum(2)) * T.cos((S_hat_minus * d_n_temp).sum(2
   ) + big_sum_minus) + T.exp(-0.5 * (S_hat_plus**2 * D_n_temp).sum(2)) * T.
   cos((S_hat_plus * d_n_temp).sum(2) + big_sum_plus)
   


But when I want to use it in theano, I get the error:

...

  File "theano\compile\pfunc.py", line 93, in clone_v_get_shared_updates
    clone_v_get_shared_updates(i, copy_inputs_over)

  File "theano\compile\pfunc.py", line 93, in clone_v_get_shared_updates
    clone_v_get_shared_updates(i, copy_inputs_over)

RuntimeError: maximum recursion depth exceeded


Even by setting sys.setrecursionlimit(...) to very high number.

Thanks for your help.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to