How to change the input of conv2d from gray scale to coloured image
Change $w1=[9,9,1,64]$ to $w1=[9,9,3,64]$. The first two numbers specify the size of the filter, the third specifies the number of input channels and the last one specifies the number of output filters.


  Is it possible to use conv2d function for RGB images in Tensorflow?


Yes, conv2d is used for one channel, grey level, images and three channel images, coloured images.