Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on update #6

Closed
ngbountos opened this issue Nov 7, 2018 · 1 comment
Closed

Error on update #6

ngbountos opened this issue Nov 7, 2018 · 1 comment

Comments

@ngbountos
Copy link

Hi,
When I try to train DEPICT I receive the following error in random epochs. I have received it in epochs 165 400 2000. The error is
TypeError: ('An update must have the same type as the original shared variable (shared_var=<TensorType(float32, matrix)>, shared_var.type=TensorType(float32, matrix), update_val=Elemwise{add,no_inplace}.0, update_val.type=TensorType(float64, matrix)).', 'If the difference is related to the broadcast pattern, you can call the tensor.unbroadcast(var, axis_to_unbroadcast[, ...]) function to remove broadcastable dimensions.')
It occurs in this block of code:
updates = lasagne.updates.adam(
loss, params2, learning_rate=learning_rate)
train_fn = theano.function([input_var, target_var],
[loss, loss_recons, loss_clus], updates=updates)

Did you face it ? Any ideas on how can I bypass it? The versions of Theano and Lasagne are as instructed in the guidelines.

@herandy
Copy link
Owner

herandy commented Nov 16, 2018

The model shouldn't really go to epochs 400 or 2000. What data are you using for this? Seems like you are having type problems with float64 apparently, did you make sure all the float values are float32 before you pass them to the network?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants