I am using theano-0.9
The error message is as follows.






















































































*Traceback (most recent call last):  File "test.py", line 16, in <module>
  TH,updates = theano.scan(lambda i: T.hessian(v[i], x),
sequences=T.arange(v.shape[0]))  File
"/Library/Python/2.7/site-packages/theano/scan_module/scan.py", line 773,
in scan    condition, outputs, updates =
scan_utils.get_updates_and_outputs(fn(*args))  File "test.py", line 16, in
<lambda>    TH,updates = theano.scan(lambda i: T.hessian(v[i], x),
sequences=T.arange(v.shape[0]))  File
"/Library/Python/2.7/site-packages/theano/gradient.py", line 1888, in
hessian    non_sequences=[expr, input])  File
"/Library/Python/2.7/site-packages/theano/scan_module/scan.py", line 773,
in scan    condition, outputs, updates =
scan_utils.get_updates_and_outputs(fn(*args))  File
"/Library/Python/2.7/site-packages/theano/gradient.py", line 1886, in
<lambda>    disconnected_inputs='ignore'),  File
"/Library/Python/2.7/site-packages/theano/gradient.py", line 555, in grad
  grad_dict, wrt, cost_name)  File
"/Library/Python/2.7/site-packages/theano/gradient.py", line 1317, in
_populate_grad_dict    rval = [access_grad_cache(elem) for elem in wrt]
File "/Library/Python/2.7/site-packages/theano/gradient.py", line 1272, in
access_grad_cache    term = access_term_cache(node)[idx]  File
"/Library/Python/2.7/site-packages/theano/gradient.py", line 967, in
access_term_cache    output_grads = [access_grad_cache(var) for var in
node.outputs]  File "/Library/Python/2.7/site-packages/theano/gradient.py",
line 1272, in access_grad_cache    term = access_term_cache(node)[idx]
File "/Library/Python/2.7/site-packages/theano/gradient.py", line 967, in
access_term_cache    output_grads = [access_grad_cache(var) for var in
node.outputs]  File "/Library/Python/2.7/site-packages/theano/gradient.py",
line 1272, in access_grad_cache    term = access_term_cache(node)[idx]
File "/Library/Python/2.7/site-packages/theano/gradient.py", line 967, in
access_term_cache    output_grads = [access_grad_cache(var) for var in
node.outputs]  File "/Library/Python/2.7/site-packages/theano/gradient.py",
line 1272, in access_grad_cache    term = access_term_cache(node)[idx]
File "/Library/Python/2.7/site-packages/theano/gradient.py", line 967, in
access_term_cache    output_grads = [access_grad_cache(var) for var in
node.outputs]  File "/Library/Python/2.7/site-packages/theano/gradient.py",
line 1272, in access_grad_cache    term = access_term_cache(node)[idx]
File "/Library/Python/2.7/site-packages/theano/gradient.py", line 967, in
access_term_cache    output_grads = [access_grad_cache(var) for var in
node.outputs]  File "/Library/Python/2.7/site-packages/theano/gradient.py",
line 1272, in access_grad_cache    term = access_term_cache(node)[idx]
File "/Library/Python/2.7/site-packages/theano/gradient.py", line 1108, in
access_term_cache    new_output_grads)  File
"/Library/Python/2.7/site-packages/theano/gof/op.py", line 711, in L_op
return self.grad(inputs, output_grads)AttributeError: 'EighGrad' object has
no attribute 'grad'*

-- 

--- 
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 theano-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to