dnn_tensorflow_cpp icon indicating copy to clipboard operation
dnn_tensorflow_cpp copied to clipboard

error when run the exe

Open wikky250 opened this issue 6 years ago • 6 comments

i just build the program well when the program run to the line 90: TF_CHECK_OK(session.Run({{x, x_data}, {y, y_data}}, {apply_w1, apply_w2, apply_w3, apply_b1, apply_b2, apply_b3}, nullptr)); the system always told me two error: some time is Allocator (GPU_0_bfc) ran out of memory trying to allocate 3.92GiB. Current allocation summary follows. another time is Non-OK-status: session.Run({ { x, x_data },{ y, y_data } }, { apply_w1, apply_w2, apply_w3, apply_b1, apply_b2, apply_b3, layer_3 }, nullptr) status: Invalid argument: Incompatible shapes: [2] vs. [0] I'm not sure which error is right. So what should i do ?

wikky250 avatar Sep 26 '18 06:09 wikky250

What are your input data?

theflofly avatar Sep 27 '18 06:09 theflofly

The data is download from the GitHub Website: https://github.com/theflofly/dnn_tensorflow_cpp/blob/master/normalized_car_features.csv Download it in my E: root. The program change to DataSet data_set("", "E:/normalized_car_features.csv"); Or DataSet data_set("E:/", " normalized_car_features.csv");

When I debug it ,I can see the data_set.x() and data_set.y() already get the data.

The error was show at the model.cc Line 90: TF_CHECK_OK(session.Run({{x, x_data}, {y, y_data}}, {apply_w1, apply_w2, apply_w3, apply_b1, apply_b2, apply_b3}, nullptr));

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: Courtial Florianmailto:[email protected] Sent: 2018年9月27日 14:31 To: theflofly/dnn_tensorflow_cppmailto:[email protected] Cc: wikky250mailto:[email protected]; Authormailto:[email protected] Subject: Re: [theflofly/dnn_tensorflow_cpp] error when run the exe (#4)

What are your input data?

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/theflofly/dnn_tensorflow_cpp/issues/4#issuecomment-424974407, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOpZ4IaXmTqaw7R9KLxr4Wnu3OkqcV_qks5ufHDbgaJpZM4W6AIE.

wikky250 avatar Sep 27 '18 06:09 wikky250

And this is the only modification you made to the code?

theflofly avatar Sep 27 '18 06:09 theflofly

Yes, no more change.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: Courtial Florian [email protected] Sent: Thursday, September 27, 2018 2:40:08 PM To: theflofly/dnn_tensorflow_cpp Cc: wikky250; Author Subject: Re: [theflofly/dnn_tensorflow_cpp] error when run the exe (#4)

And this is the only modification you made to the code?

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/theflofly/dnn_tensorflow_cpp/issues/4#issuecomment-424976080, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOpZ4MbCBew9l3KckNwDWGm_gDRWjK_Pks5ufHLIgaJpZM4W6AIE.

wikky250 avatar Sep 27 '18 06:09 wikky250

You built Tensorflow locally? Which version are you using?

theflofly avatar Sep 27 '18 06:09 theflofly

Tensorflow 1.5 Cmake 3.12.2 Cuda 8.0 Cudnn 5.1 All in x64

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: Courtial Florian [email protected] Sent: Thursday, September 27, 2018 2:42:43 PM To: theflofly/dnn_tensorflow_cpp Cc: wikky250; Author Subject: Re: [theflofly/dnn_tensorflow_cpp] error when run the exe (#4)

You built Tensorflow locally? Which version are you using?

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/theflofly/dnn_tensorflow_cpp/issues/4#issuecomment-424976601, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOpZ4P8ZhGOtr5qP9IDw7AD0IZKPrZeGks5ufHNjgaJpZM4W6AIE.

wikky250 avatar Sep 27 '18 06:09 wikky250