Dear roman..., I don't understand what you are trying to achieve. What do you mean by "calculate the derivatives of a function"? Like f, f', f'', f''' ...? Or numerical derivatives?
cheers gaebor 2017. február 27., hétfő 9:55:39UTC+1 időpontban [email protected] a következőt írta: > > 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.
