When a model is trained and saved using official PyTorch(http://pytorch.org/) and the same model is loaded using OpenCV dnn module like this cv2.dnn.readNetFromTorch(pretrained_model_path) it throws below error
error:(-213: The function/feature is not implemented) Unsupported Lua type in function 'cv::dnn::*::TorchImporter::readObjectC:\fakepath\OpenCV_DNN_Error.png