Traceback (most recent call last):


 "train.py", line 214, in <module>

save_dirname="understand_sentiment_conv.inference.model")


 "train.py", line 188, in main

save_dirname=save_dirname)


 "train.py", line 173, in train

train_loop(fluid.default_main_program())


 "train.py", line 137, in train_loop

exe.run(fluid.default_startup_program())


 "/usr/local/lib/python2.7/dist-packages/paddle/fluid/executor.py", line 336, in run

self.executor.run(program.desc, scope, 0, True, True)
RuntimeError: function_attributes(): after cudaFuncGetAttributes: invalid device function

Traceback (most recent call last):


 "predict_tensorrt_video.py", line 665, in <module>

main()


 "predict_tensorrt_video.py", line 88, in inner

retval = fnc(*args, **kwargs)


 "predict_tensorrt_video.py", line 659, in main

run_inference(args.video_in, args.video_out, candidate_id, current_time)


 "predict_tensorrt_video.py", line 549, in run_inference

face_encoding = get_face_encodings(frame, css_type_face_location, 0)[0]


 "/home/gate/.virtualenvs/lffd/lib/python3.6/site-packages/face_recognition/api.py", line 210, in face_encodings

return [np.array(face_encoder.compute_face_descriptor(face_image, raw_landmark_set, num_jitters)) for raw_landmark_set in raw_landmarks]


 "/home/gate/.virtualenvs/lffd/lib/python3.6/site-packages/face_recognition/api.py", line 210, in <listcomp>

return [np.array(face_encoder.compute_face_descriptor(face_image, raw_landmark_set, num_jitters)) for raw_landmark_set in raw_landmarks]
RuntimeError: Error while calling cudnnConvolutionForward( context(), &alpha, descriptor(data), data.device(), (const cudnnFilterDescriptor_t)filter_handle, filters.device(), (const cudnnConvolutionDescriptor_t)conv_handle, (cudnnConvolutionFwdAlgo_t)forward_algo, forward_workspace, forward_workspace_size_in_bytes, &beta, descriptor(output), output.device()) in file /home/gate/dlib-19.17/dlib/cuda/cudnn_dlibapi.cpp:1007. code: 7, reason: A call to cuDNN failed
