I run tensorflow ,by python3.but CUDA runtime implicit initialization on GPU:0 failed internal

I run tensorflow ,by python3.but:CUDA runtime implicit initialization on GPU:0 failed internal
the log is this:
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import tensorflow as tf

sess = tf.Session()
2018-09-19 14:39:28.372649: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:864] ARM64 does not support NUMA - returning NUMA node zero
2018-09-19 14:39:28.372904: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1392] Found device 0 with properties:
name: NVIDIA Tegra X2 major: 6 minor: 2 memoryClockRate(GHz): 1.3005
pciBusID: 0000:00:00.0
totalMemory: 7.66GiB freeMemory: 4.73GiB
2018-09-19 14:39:28.373072: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1471] Adding visible gpu devices: 0

2018-09-19 14:39:30.970862: I tensorflow/core/common_runtime/gpu/gpu_device.cc:952] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-09-19 14:39:30.970954: I tensorflow/core/common_runtime/gpu/gpu_device.cc:958] 0
2018-09-19 14:39:30.971010: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] 0: N
2018-09-19 14:39:30.971201: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1084] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4339 MB memory) → physical GPU (device: 0, name: NVIDIA Tegra X2, pci bus id: 0000:00:00.0, compute capability: 6.2)

hello = tf.constant(‘Hello, TensorFlow!’)
sess = tf.Session()
2018-09-19 14:39:41.348955: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1471] Adding visible gpu devices: 0
2018-09-19 14:39:41.349823: E tensorflow/core/common_runtime/direct_session.cc:158] Internal: CUDA runtime implicit initialization on GPU:0 failed. Status: unknown error
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py”, line 1563, in init
super(Session, self).init(target, graph, config=config)
File “/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py”, line 633, in init
self._session = tf_session.TF_NewSession(self._graph._c_graph, opts)
tensorflow.python.framework.errors_impl.InternalError: Failed to create session.

Hi,

Please noticed that there are some dependencies on GPU architecture and python version.
It’s recommended to install our TensorFlow package for python3.
[url]https://devtalk.nvidia.com/default/topic/1038957/jetson-tx2/tensorflow-for-jetson-tx2-/[/url]

Please let us know if you still meet an error with our official package.
Thanks.

Did you mean: reinstall again?

YES.

It’s recommended to try our official TensorFlow package.
Thanks.