Advertisement
Guest User

Error

a guest
Mar 15th, 2017
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 10.76 KB | None | 0 0
  1. akiiinos-MBP:seq2seq akiiino$ python3 -m unittest seq2seq.test.pipeline_test
  2. .INFO:tensorflow:Loading config from /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpsedb3sm0/train_config.yml
  3. INFO:tensorflow:Final Config:
  4. input_pipeline_dev:
  5.   class: ParallelTextInputPipeline
  6.   params:
  7.     source_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpmainlm_a]
  8.     target_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpu8n6d88b]
  9. input_pipeline_train:
  10.   class: ParallelTextInputPipeline
  11.   params:
  12.     source_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmptricslbr]
  13.     target_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmppw93yt3k]
  14. model_params:
  15.   decoder.params:
  16.     rnn_cell:
  17.       cell_class: GRUCell
  18.       cell_params: {num_units: 8}
  19.   embedding.dim: 10
  20.   encoder.params:
  21.     rnn_cell:
  22.       cell_class: GRUCell
  23.       cell_params: {num_units: 8}
  24. train_steps: 50
  25.  
  26. INFO:tensorflow:Setting save_checkpoints_secs to 600
  27. INFO:tensorflow:Creating ParallelTextInputPipeline in mode=train
  28. INFO:tensorflow:
  29. ParallelTextInputPipeline:
  30.   num_epochs: null
  31.   shuffle: true
  32.   source_delimiter: ' '
  33.   source_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmptricslbr]
  34.   target_delimiter: ' '
  35.   target_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmppw93yt3k]
  36.  
  37. INFO:tensorflow:Creating ParallelTextInputPipeline in mode=eval
  38. INFO:tensorflow:
  39. ParallelTextInputPipeline:
  40.   num_epochs: 1
  41.   shuffle: false
  42.   source_delimiter: ' '
  43.   source_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpmainlm_a]
  44.   target_delimiter: ' '
  45.   target_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpu8n6d88b]
  46.  
  47. INFO:tensorflow:Using config: {'_task_type': None, '_task_id': 0, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x10b506e80>, '_master': '', '_num_ps_replicas': 0, '_num_worker_replicas': 0, '_environment': 'local', '_is_chief': True, '_evaluation_master': '', '_tf_config': gpu_options {
  48.   per_process_gpu_memory_fraction: 1
  49. }
  50. , '_tf_random_seed': None, '_save_summary_steps': 100, '_save_checkpoints_secs': 600, '_save_checkpoints_steps': None, '_keep_checkpoint_max': 5, '_keep_checkpoint_every_n_hours': 4, '_model_dir': None}
  51. /usr/local/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py:179: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
  52.   return inspect.getargspec(func).args
  53. WARNING:tensorflow:From /usr/local/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/monitors.py:267: BaseMonitor.__init__ (from tensorflow.contrib.learn.python.learn.monitors) is deprecated and will be removed after 2016-12-05.
  54. Instructions for updating:
  55. Monitors are deprecated. Please use tf.train.SessionRunHook.
  56. INFO:tensorflow:Creating AttentionSeq2Seq in mode=train
  57. INFO:tensorflow:
  58. AttentionSeq2Seq:
  59.   attention.class: AttentionLayerBahdanau
  60.   attention.params: {num_units: 10}
  61.   bridge.class: seq2seq.models.bridges.ZeroBridge
  62.   bridge.params: {}
  63.   decoder.class: seq2seq.decoders.AttentionDecoder
  64.   decoder.params:
  65.     rnn_cell:
  66.       cell_class: GRUCell
  67.       cell_params: {num_units: 8}
  68.   embedding.dim: 10
  69.   embedding.share: false
  70.   encoder.class: seq2seq.encoders.BidirectionalRNNEncoder
  71.   encoder.params:
  72.     rnn_cell:
  73.       cell_class: GRUCell
  74.       cell_params: {num_units: 8}
  75.   inference.beam_search.beam_width: 0
  76.   inference.beam_search.choose_successors_fn: choose_top_k
  77.   inference.beam_search.length_penalty_weight: 0.0
  78.   optimizer.clip_gradients: 5.0
  79.   optimizer.learning_rate: 0.0001
  80.   optimizer.lr_decay_rate: 0.99
  81.   optimizer.lr_decay_steps: 100
  82.   optimizer.lr_decay_type: ''
  83.   optimizer.lr_min_learning_rate: 1.0e-12
  84.   optimizer.lr_staircase: false
  85.   optimizer.lr_start_decay_at: 0
  86.   optimizer.lr_stop_decay_at: 1000000000.0
  87.   optimizer.name: Adam
  88.   source.max_seq_len: 50
  89.   source.reverse: true
  90.   target.max_seq_len: 50
  91.   vocab_source: /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpn64fz560
  92.   vocab_target: /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpt2zbhwu_
  93.  
  94. INFO:tensorflow:Creating vocabulary lookup table of size 7
  95. INFO:tensorflow:Creating vocabulary lookup table of size 7
  96. INFO:tensorflow:Creating BidirectionalRNNEncoder in mode=train
  97. INFO:tensorflow:
  98. BidirectionalRNNEncoder:
  99.   rnn_cell:
  100.     cell_class: GRUCell
  101.     cell_params: {num_units: 8}
  102.     dropout_input_keep_prob: 1.0
  103.     dropout_output_keep_prob: 1.0
  104.     num_layers: 1
  105.     residual_combiner: add
  106.     residual_connections: false
  107.     residual_dense: false
  108.  
  109. /Users/akiiino/seq2seq/seq2seq/training/utils.py:118: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
  110.   cell_args = set(inspect.getargspec(cell_class.__init__).args[1:])
  111. INFO:tensorflow:Creating AttentionLayerBahdanau in mode=train
  112. INFO:tensorflow:
  113. AttentionLayerBahdanau: {num_units: 10}
  114.  
  115. INFO:tensorflow:Creating AttentionDecoder in mode=train
  116. INFO:tensorflow:
  117. AttentionDecoder:
  118.   max_decode_length: 100
  119.   rnn_cell:
  120.     cell_class: GRUCell
  121.     cell_params: {num_units: 8}
  122.     dropout_input_keep_prob: 1.0
  123.     dropout_output_keep_prob: 1.0
  124.     num_layers: 1
  125.     residual_combiner: add
  126.     residual_connections: false
  127.     residual_dense: false
  128.  
  129. INFO:tensorflow:Creating ZeroBridge in mode=train
  130. INFO:tensorflow:
  131. ZeroBridge: {}
  132.  
  133. INFO:tensorflow:Create CheckpointSaverHook.
  134. INFO:tensorflow:Saving checkpoints for 1 into /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpsedb3sm0/model.ckpt.
  135. INFO:tensorflow:loss = 1.89302, step = 1
  136. INFO:tensorflow:Saving checkpoints for 50 into /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpsedb3sm0/model.ckpt.
  137. /usr/local/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/monitors.py:1167: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
  138.   if "session" in inspect.getargspec(m.end).args:
  139. INFO:tensorflow:Loss for final step: 1.93904.
  140. INFO:tensorflow:Creating AttentionSeq2Seq in mode=eval
  141. INFO:tensorflow:
  142. AttentionSeq2Seq:
  143.   attention.class: AttentionLayerBahdanau
  144.   attention.params: {num_units: 10}
  145.   bridge.class: seq2seq.models.bridges.ZeroBridge
  146.   bridge.params: {}
  147.   decoder.class: seq2seq.decoders.AttentionDecoder
  148.   decoder.params:
  149.     rnn_cell:
  150.       cell_class: GRUCell
  151.       cell_params: {num_units: 8}
  152.   embedding.dim: 10
  153.   embedding.share: false
  154.   encoder.class: seq2seq.encoders.BidirectionalRNNEncoder
  155.   encoder.params:
  156.     rnn_cell:
  157.       cell_class: GRUCell
  158.       cell_params: {num_units: 8}
  159.   inference.beam_search.beam_width: 0
  160.   inference.beam_search.choose_successors_fn: choose_top_k
  161.   inference.beam_search.length_penalty_weight: 0.0
  162.   optimizer.clip_gradients: 5.0
  163.   optimizer.learning_rate: 0.0001
  164.   optimizer.lr_decay_rate: 0.99
  165.   optimizer.lr_decay_steps: 100
  166.   optimizer.lr_decay_type: ''
  167.   optimizer.lr_min_learning_rate: 1.0e-12
  168.   optimizer.lr_staircase: false
  169.   optimizer.lr_start_decay_at: 0
  170.   optimizer.lr_stop_decay_at: 1000000000.0
  171.   optimizer.name: Adam
  172.   source.max_seq_len: 50
  173.   source.reverse: true
  174.   target.max_seq_len: 50
  175.   vocab_source: /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpn64fz560
  176.   vocab_target: /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpt2zbhwu_
  177.  
  178. INFO:tensorflow:Creating vocabulary lookup table of size 7
  179. INFO:tensorflow:Creating vocabulary lookup table of size 7
  180. INFO:tensorflow:Creating BidirectionalRNNEncoder in mode=eval
  181. INFO:tensorflow:
  182. BidirectionalRNNEncoder:
  183.   rnn_cell:
  184.     cell_class: GRUCell
  185.     cell_params: {num_units: 8}
  186.     dropout_input_keep_prob: 1.0
  187.     dropout_output_keep_prob: 1.0
  188.     num_layers: 1
  189.     residual_combiner: add
  190.     residual_connections: false
  191.     residual_dense: false
  192.  
  193. INFO:tensorflow:Creating AttentionLayerBahdanau in mode=eval
  194. INFO:tensorflow:
  195. AttentionLayerBahdanau: {num_units: 10}
  196.  
  197. INFO:tensorflow:Creating AttentionDecoder in mode=eval
  198. INFO:tensorflow:
  199. AttentionDecoder:
  200.   max_decode_length: 100
  201.   rnn_cell:
  202.     cell_class: GRUCell
  203.     cell_params: {num_units: 8}
  204.     dropout_input_keep_prob: 1.0
  205.     dropout_output_keep_prob: 1.0
  206.     num_layers: 1
  207.     residual_combiner: add
  208.     residual_connections: false
  209.     residual_dense: false
  210.  
  211. INFO:tensorflow:Creating ZeroBridge in mode=eval
  212. INFO:tensorflow:
  213. ZeroBridge: {}
  214.  
  215. INFO:tensorflow:Starting evaluation at 2017-03-16-03:42:25
  216. INFO:tensorflow:Restoring parameters from /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpsedb3sm0/model.ckpt-50
  217. 2017-03-16 06:42:26.013623: W tensorflow/core/kernels/queue_base.cc:302] _25_parallel_read_1/common_queue: Skipping cancelled dequeue attempt with queue not closed
  218. 2017-03-16 06:42:26.563174: W tensorflow/core/framework/op_kernel.cc:1151] Out of range: PaddingFIFOQueue '_26_batch_queue/padding_fifo_queue' is closed and has insufficient elements (requested 2, current size 0)
  219.      [[Node: batch_queue = QueueDequeueUpToV2[component_types=[DT_INT32, DT_STRING, DT_INT32, DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](batch_queue/padding_fifo_queue, batch_queue/n)]]
  220. INFO:tensorflow:Finished evaluation at 2017-03-16-03:42:27
  221. INFO:tensorflow:Saving dict for global step 50: bleu = 0.0, global_step = 50, log_perplexity = 1.90878, loss = 1.91316, rouge_1/f_score = 0.166667, rouge_l/f_score = 0.0653846
  222. /usr/local/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py:328: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  223.   key)
  224. WARNING:tensorflow:Skipping summary for global_step, must be a float or np.float32.
  225. INFO:tensorflow:Creating ParallelTextInputPipeline in mode=infer
  226. INFO:tensorflow:
  227. ParallelTextInputPipeline:
  228.   num_epochs: 1
  229.   shuffle: false
  230.   source_delimiter: ' '
  231.   source_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpmainlm_a]
  232.   target_delimiter: ' '
  233.   target_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpu8n6d88b]
  234.  
  235. E
  236. ======================================================================
  237. ERROR: test_train_infer (seq2seq.test.pipeline_test.PipelineTest)
  238. Tests training and inference scripts.
  239. ----------------------------------------------------------------------
  240. Traceback (most recent call last):
  241.   File "/Users/akiiino/seq2seq/seq2seq/test/pipeline_test.py", line 174, in test_train_infer
  242.     infer_script.main([])
  243.   File "/Users/akiiino/seq2seq/bin/infer.py", line 77, in main
  244.     train_options = training_utils.TrainOptions.load(FLAGS.model_dir)
  245.   File "/Users/akiiino/seq2seq/seq2seq/training/utils.py", line 93, in load
  246.     options_dict = json.loads(file.read().decode("utf-8"))
  247. AttributeError: 'str' object has no attribute 'decode'
  248.  
  249. ----------------------------------------------------------------------
  250. Ran 2 tests in 29.205s
  251.  
  252. FAILED (errors=1)
  253. akiiinos-MBP:seq2seq akiiino$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement