@@ -16,7 +16,7 @@ int main(int argc, char* argv[]) {
16
16
Session* session;
17
17
Status status = NewSession (SessionOptions (), &session);
18
18
if (!status.ok ()) {
19
- std::cout << status.ToString () << std::endl;
19
+ std::cerr << status.ToString () << std::endl;
20
20
return 1 ;
21
21
} else {
22
22
std::cout << " Session created successfully" << std::endl;
@@ -27,7 +27,7 @@ int main(int argc, char* argv[]) {
27
27
std::string graph_path = argv[1 ];
28
28
status = ReadBinaryProto (Env::Default (), graph_path, &graph_def);
29
29
if (!status.ok ()) {
30
- std::cout << status.ToString () << std::endl;
30
+ std::cerr << status.ToString () << std::endl;
31
31
return 1 ;
32
32
} else {
33
33
std::cout << " Load graph protobuf successfully" << std::endl;
@@ -36,7 +36,7 @@ int main(int argc, char* argv[]) {
36
36
// Add the graph to the session
37
37
status = session->Create (graph_def);
38
38
if (!status.ok ()) {
39
- std::cout << status.ToString () << std::endl;
39
+ std::cerr << status.ToString () << std::endl;
40
40
return 1 ;
41
41
} else {
42
42
std::cout << " Add graph to session successfully" << std::endl;
@@ -63,7 +63,7 @@ int main(int argc, char* argv[]) {
63
63
// Run the session, evaluating our "c" operation from the graph
64
64
status = session->Run (inputs, {" c" }, {}, &outputs);
65
65
if (!status.ok ()) {
66
- std::cout << status.ToString () << std::endl;
66
+ std::cerr << status.ToString () << std::endl;
67
67
return 1 ;
68
68
} else {
69
69
std::cout << " Run session successfully" << std::endl;
0 commit comments