TensorFlow-Time-Series-Examples icon indicating copy to clipboard operation
TensorFlow-Time-Series-Examples copied to clipboard

大神,跑了你的train_lstm.py报错如下

Open codetjj opened this issue 7 years ago • 0 comments

平台:ubuntu 16.04 tensorflow版本: tensorflow-gpu-1.4 报错如下

WARNING:tensorflow:Skipping summary for observed, must be a float, np.float32, np.int64, np.int32 or int. WARNING:tensorflow:Skipping summary for times, must be a float, np.float32, np.int64, np.int32 or int. WARNING:tensorflow:Skipping summary for mean, must be a float, np.float32, np.int64, np.int32 or int. WARNING:tensorflow:Skipping summary for start_tuple, must be a float, np.float32, np.int64, np.int32 or int. WARNING:tensorflow:Input graph does not contain a QueueRunner. That means predict yields forever. This is probably a mistake. 2018-06-09 16:57:18.216300: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX 1060, pci bus id: 0000:01:00.0, compute capability: 6.1) INFO:tensorflow:Restoring parameters from /tmp/tmpwvnv1vj8/model.ckpt-2000 2018-06-09 16:57:18.318936: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319003: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319028: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319078: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319125: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319148: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319168: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319191: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319238: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319260: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319306: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319343: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319377: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319399: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319419: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319441: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319461: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319483: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319502: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] 2018-06-09 16:57:18.319518: W tensorflow/core/framework/op_kernel.cc:1192] Out of range: Reached limit of 1 [[Node: limit_epochs_2/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@limit_epochs_2/epochs"], limit=1, _device="/job:localhost/replica:0/task:0/device:CPU:0"]] Traceback (most recent call last): File "/home/jarlan/PycharmProjects/time_serier/train_lstm.py", line 199, in plt.savefig('predict_result.jpg') File "/home/jarlan/.local/lib/python3.5/site-packages/matplotlib/pyplot.py", line 710, in savefig res = fig.savefig(*args, **kwargs) File "/home/jarlan/.local/lib/python3.5/site-packages/matplotlib/figure.py", line 2035, in savefig self.canvas.print_figure(fname, **kwargs) File "/home/jarlan/.local/lib/python3.5/site-packages/matplotlib/backend_bases.py", line 2263, in print_figure **kwargs) File "/home/jarlan/.local/lib/python3.5/site-packages/matplotlib/backends/backend_agg.py", line 584, in print_jpg return background.save(filename_or_obj, format='jpeg', **options) File "/usr/lib/python3/dist-packages/PIL/Image.py", line 1675, in save save_handler(self, fp, filename) File "/usr/lib/python3/dist-packages/PIL/JpegImagePlugin.py", line 708, in _save ImageFile._save(im, fp, [("jpeg", (0, 0)+im.size, 0, rawmode)], bufsize) File "/usr/lib/python3/dist-packages/PIL/ImageFile.py", line 480, in _save e = Image._getencoder(im.mode, e, a, im.encoderconfig) File "/usr/lib/python3/dist-packages/PIL/Image.py", line 431, in _getencoder return encoder(mode, *args + extra) TypeError: integer argument expected, got float

codetjj avatar Jun 09 '18 09:06 codetjj