You can use vision::models::AlexNet like any other nn::Modules in C++ frontend. For example: https://github.com/pytorch/vision/blob/2287c8f2dc9dcad955318cc022cabe4d53051f65/test/test_models.cpp#L9-L19 19.