tensorflow_unpooling icon indicating copy to clipboard operation
tensorflow_unpooling copied to clipboard

How can i use this function as a Lambda layer in my neural network

Open arbaz52 opened this issue 6 years ago • 2 comments

https://github.com/sangeet259/tensorflow_unpooling/blob/e45e03d5df8e7e4b08c3011b55265508c6953594/unpool.py#L20

Shows me the following error when i create the model: pooled_ = tf.reshape(pooled, [input_shape[0] * input_shape[1] * input_shape[2] * input_shape[3]]) TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

arbaz52 avatar Jul 21 '19 09:07 arbaz52

https://github.com/sangeet259/tensorflow_unpooling/blob/e45e03d5df8e7e4b08c3011b55265508c6953594/unpool.py#L20

Shows me the following error when i create the model: pooled_ = tf.reshape(pooled, [input_shape[0] * input_shape[1] * input_shape[2] * input_shape[3]]) TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

same error is occurred. Did you solve that?

han-yeol avatar Sep 08 '20 15:09 han-yeol

I stopped working on it a while ago, but I was trying to use it in my project to build an attention layer. Please check the following repository to see if you can find out how I used it, that might help you fix the error you're facing. https://github.com/arbaz52/attention-network If you cannot find it there, I have worked on Tensorflow in past, feel free to check my repositories to find one that fits your situation.

arbaz52 avatar Sep 29 '20 21:09 arbaz52