Skip to content
New issue

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

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

Already on GitHub? # to your account

AttributeError: 'function' object has no attribute 'get_shape' #3

Open
Wyatt1994 opened this issue Oct 20, 2017 · 4 comments
Open

AttributeError: 'function' object has no attribute 'get_shape' #3

Wyatt1994 opened this issue Oct 20, 2017 · 4 comments

Comments

@Wyatt1994
Copy link

at line287 x = Lambda(lambda z: z[:, :, :, c * grouped_channels:(c + 1) * grouped_channels] if K.image_data_format() == 'channels_last' else lambda z: z[:, c * grouped_channels:(c + 1) * grouped_channels, :, :])(input)
this cannot be compiled.I try to define two functions to replace lambda,and then it works!

AttributeError: 'function' object has no attribute 'get_shape'` #5987

@titu1994
Copy link
Owner

What are the functions that you are defining ? There is no error for Tensorflow backend with TF din ordering. I have not yet set it up for Theano channels first dim ordering.

@Wyatt1994
Copy link
Author

@titu1994
Copy link
Owner

Hmm, i'll look into it. Its an issue with Lambda layers needing a shape predefined for them.

@cowboytong
Copy link

where can i find the weight of dpn training in imagenet?

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

No branches or pull requests

3 participants