Rob
2015-03-10 12:46:05 UTC
I want a theano function that, given a scalar input, will return a tensor
stored in a list at the index of that scalar. i.e
theano.function([index],list[index],givens= {x: <some function of index>})
where the list contains different x-dependent tensors that I want to
evaluate depending on the index given.
This generates error:
TypeError: list indices must be integers, not TensorVariable
I'm very new to Theano so I'm probably thinking about this problem in the
wrong way. I would really appreciate any advice.
Rob
stored in a list at the index of that scalar. i.e
theano.function([index],list[index],givens= {x: <some function of index>})
where the list contains different x-dependent tensors that I want to
evaluate depending on the index given.
This generates error:
TypeError: list indices must be integers, not TensorVariable
I'm very new to Theano so I'm probably thinking about this problem in the
wrong way. I would really appreciate any advice.
Rob
--
---
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.