I got help for this from someone at work who is a ue4 pro. Try enabling RTTI.
Edit also the warnings can be gotten around with
THIRD_PARTY_INCLUDES_START
#include "torch/torch.h"
THIRD_PARTY_INCLUDES_END