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

BatchNormalizedMLP problem with more than two dimensions #109

Open
rrahmati opened this issue Jan 3, 2017 · 0 comments
Open

BatchNormalizedMLP problem with more than two dimensions #109

rrahmati opened this issue Jan 3, 2017 · 0 comments

Comments

@rrahmati
Copy link

rrahmati commented Jan 3, 2017

It seems that if we pass a 3D tensor (e.g. time added as the first dimension) to the BatchNormalizedMLP, we get the following error. Reshaping the input and output to 2D tensors will solve the problem.

TypeError: ('An update must have the same type as the original shared variable (shared_var=population_mean, shared_var.type=CudaNdarrayType(float32, vector), update_val=Elemwise{add,no_inplace}.0, update_val.type=TensorType(float32, 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.\n\nOriginal exception:\n\tTypeError: An update must have the same type as the original shared variable (shared_var=population_mean, shared_var.type=CudaNdarrayType(float32, vector), update_val=Elemwise{add,no_inplace}.0, update_val.type=TensorType(float32, 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.', 'If the difference is related to the broadcast pattern, you can call the tensor.unbroadcast(var, axis_to_unbroadcast[, ...]) function to remove broadcastable dimensions.')

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

1 participant