Theano / Theano

Theano was a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently. It is being continued as PyTensor: www.github.com/pymc-devs/pytensor

Home Page:https://www.github.com/pymc-devs/pytensor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'Tensor' object has no attribute 'reshape'

yassinesamet opened this issue · comments

import theano.tensor as T
y_true = T.flatten(y_true)

.
File "/home/yassine/venv/lib/python3.6/site-packages/theano/tensor/basic.py", line 5122, in flatten
x_reshaped = x.reshape(dims)
AttributeError: 'Tensor' object has no attribute 'reshape'