收藏 (0)  打赏  点赞 (0)

Alex_Chase 1年前

老师 你好。这个程序报错了。。。。。。

-----------------------------------------------------------------------------

把计算图写入事件文件,在TensorBoard里面查看

Extracting ../MNIST_data/train-images-idx3-ubyte.gz

Extracting ../MNIST_data/train-labels-idx1-ubyte.gz

Extracting ../MNIST_data/t10k-images-idx3-ubyte.gz

Extracting ../MNIST_data/t10k-labels-idx1-ubyte.gz

Traceback (most recent call last):

  File "/home/alex/anaconda3/envs/TensorFlow/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1139, in _do_call

    return fn(*args)

  File "/home/alex/anaconda3/envs/TensorFlow/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1121, in _run_fn

    status, run_metadata)

  File "/home/alex/anaconda3/envs/TensorFlow/lib/python3.6/contextlib.py", line 88, in __exit__

    next(self.gen)

  File "/home/alex/anaconda3/envs/TensorFlow/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status

    pywrap_tensorflow.TF_GetCode(status))

tensorflow.python.framework.errors_impl.InternalError: Dst tensor is not initialized.

 [[Node: _arg_X_Origin/Placeholder_0_0/_5 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_337__arg_X_Origin/Placeholder_0_0", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"]()]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/home/alex/PycharmProjects/机器学习_Test/双隐层自编码器/Auto_Encoder_Two_Layer.py", line 85, in <module>

    _, loss = sess.run([Train, Loss], feed_dict={X_Origin: batch_xs})

  File "/home/alex/anaconda3/envs/TensorFlow/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 789, in run

    run_metadata_ptr)

  File "/home/alex/anaconda3/envs/TensorFlow/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 997, in _run

    feed_dict_string, options, run_metadata)

  File "/home/alex/anaconda3/envs/TensorFlow/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1132, in _do_run

    target_list, options, run_metadata)

  File "/home/alex/anaconda3/envs/TensorFlow/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1152, in _do_call

    raise type(e)(node_def, op, message)

tensorflow.python.framework.errors_impl.InternalError: Dst tensor is not initialized.

 [[Node: _arg_X_Origin/Placeholder_0_0/_5 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_337__arg_X_Origin/Placeholder_0_0", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"]()]]

------------------------------------------------------------

求怎么解决

(0) 回复

您可能需要以下文章!

友情介绍

powered by studyai.com 2017