Deserialize Lua class error


I am trying to load DenseNet-BC .t7 model using load_lua('densenet-121.t7'), but it throws an exception saying
T7ReaderException: don't know how to deserialize Lua class cudnn.SpatialConvolution.

How do I fix this?

Load your model in Lua, convert all cudnn modules to nn modules, load it in PyTorch