Solved by Vish2020 in post #3 
              
              
                Hi the error has been resolved, I simply needed to call nn.Flatten() first on the multidimensional array in order to convert into a 2d array after which dropout is called.  Thx.