Skip to content

Commit f699ee7

Browse files
andrewharptensorflower-gardener
authored andcommitted
Move "using namespace tensorflow" declaration in tensorflow_jni.cc so that int64 global variable will be covered.
Change: 116880050
1 parent ce076a7 commit f699ee7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow/examples/android/jni/tensorflow_jni.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ limitations under the License.
3535
#include "tensorflow/core/public/session.h"
3636
#include "tensorflow/examples/android/jni/jni_utils.h"
3737

38+
using namespace tensorflow;
39+
3840
// Global variables that holds the Tensorflow classifier.
3941
static std::unique_ptr<tensorflow::Session> session;
4042

@@ -49,8 +51,6 @@ static int g_image_mean; // The image mean.
4951
static int g_num_runs = 0;
5052
static int64 g_timing_total_us = 0;
5153

52-
using namespace tensorflow;
53-
5454
inline static int64 CurrentThreadTimeUs() {
5555
struct timeval tv;
5656
gettimeofday(&tv, NULL);

0 commit comments

Comments
 (0)