@albanD: Thanks for the reply. My image size is 3 x 299 x 299 as as (chan x height x width). And in tensorflow I could use 5 x 5 kernel size for my CNN model. Could you please guide me why my input size is becoming  (3 x 299 x 3) ?