theano.tensor.basic.get_vector_length()
This function is a special case of what !ShapeOptimizer does. Make it use !ShapeOptimizer and make sure !ShapeOptimizer handles all the case that this function does.
This will remove duplicate code and allow future optimization when we make `T.shared(const_shape=True)` that allow to take the shape of !SharedVariable and make it constant in the graph.
This will remove duplicate code and allow future optimization when we make `T.shared(const_shape=True)` that allow to take the shape of !SharedVariable and make it constant in the graph.
Leave a comment
on 2011-09-28 01:56 *
By David Warde-Farley
Description changed from This function is a special ... to This function is a special ...
Related to (closed) "GitHub issue* 68":https://github.com/Theano/Theano/issues/68.
tensor.get_vector_length(tensor.specify_shape(tensor.ivector(), (2,)))
should not raise an error.
- !python
tensor.get_vector_length(tensor.specify_shape(tensor.ivector(), (2,)))
should not raise an error.
on 2011-09-28 01:57 *
By David Warde-Farley
Description changed from This function is a special ... to This function is a special ...
Related to (closed) "GitHub issue* 68":https://github.com/Theano/Theano/issues/68.
tensor.get_vector_length(tensor.specify_shape(tensor.ivector(), (2,)))
should not raise an error.
- !python
tensor.get_vector_length(tensor.specify_shape(tensor.ivector(), (2,)))
should not raise an error.