Thanks @LeviViana.  That does fix the segv.  But, the output classification result seem way off
$ ./test_PyTorch_Cpp_Prediction_GPU example.JPEG ./…/…/model.pt labels.txt
[1, 1000]
1000
238Greater_Swiss_Mountain_dog
, score: 1.54363ater_Swiss_Mountain_dog
777scabbard
, score: 1.54137bbard
859toaster
, score: 1.47798ster
454bookshop
, score: 1.42607kshop
219cocker_spaniel
, score: 1.4023cker_spaniel
This is the input image: