Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- akiiinos-MBP:seq2seq akiiino$ python3 -m unittest seq2seq.test.pipeline_test
- .INFO:tensorflow:Loading config from /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpsedb3sm0/train_config.yml
- INFO:tensorflow:Final Config:
- input_pipeline_dev:
- class: ParallelTextInputPipeline
- params:
- source_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpmainlm_a]
- target_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpu8n6d88b]
- input_pipeline_train:
- class: ParallelTextInputPipeline
- params:
- source_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmptricslbr]
- target_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmppw93yt3k]
- model_params:
- decoder.params:
- rnn_cell:
- cell_class: GRUCell
- cell_params: {num_units: 8}
- embedding.dim: 10
- encoder.params:
- rnn_cell:
- cell_class: GRUCell
- cell_params: {num_units: 8}
- train_steps: 50
- INFO:tensorflow:Setting save_checkpoints_secs to 600
- INFO:tensorflow:Creating ParallelTextInputPipeline in mode=train
- INFO:tensorflow:
- ParallelTextInputPipeline:
- num_epochs: null
- shuffle: true
- source_delimiter: ' '
- source_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmptricslbr]
- target_delimiter: ' '
- target_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmppw93yt3k]
- INFO:tensorflow:Creating ParallelTextInputPipeline in mode=eval
- INFO:tensorflow:
- ParallelTextInputPipeline:
- num_epochs: 1
- shuffle: false
- source_delimiter: ' '
- source_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpmainlm_a]
- target_delimiter: ' '
- target_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpu8n6d88b]
- 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 {
- per_process_gpu_memory_fraction: 1
- }
- , '_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}
- /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()
- return inspect.getargspec(func).args
- 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.
- Instructions for updating:
- Monitors are deprecated. Please use tf.train.SessionRunHook.
- INFO:tensorflow:Creating AttentionSeq2Seq in mode=train
- INFO:tensorflow:
- AttentionSeq2Seq:
- attention.class: AttentionLayerBahdanau
- attention.params: {num_units: 10}
- bridge.class: seq2seq.models.bridges.ZeroBridge
- bridge.params: {}
- decoder.class: seq2seq.decoders.AttentionDecoder
- decoder.params:
- rnn_cell:
- cell_class: GRUCell
- cell_params: {num_units: 8}
- embedding.dim: 10
- embedding.share: false
- encoder.class: seq2seq.encoders.BidirectionalRNNEncoder
- encoder.params:
- rnn_cell:
- cell_class: GRUCell
- cell_params: {num_units: 8}
- inference.beam_search.beam_width: 0
- inference.beam_search.choose_successors_fn: choose_top_k
- inference.beam_search.length_penalty_weight: 0.0
- optimizer.clip_gradients: 5.0
- optimizer.learning_rate: 0.0001
- optimizer.lr_decay_rate: 0.99
- optimizer.lr_decay_steps: 100
- optimizer.lr_decay_type: ''
- optimizer.lr_min_learning_rate: 1.0e-12
- optimizer.lr_staircase: false
- optimizer.lr_start_decay_at: 0
- optimizer.lr_stop_decay_at: 1000000000.0
- optimizer.name: Adam
- source.max_seq_len: 50
- source.reverse: true
- target.max_seq_len: 50
- vocab_source: /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpn64fz560
- vocab_target: /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpt2zbhwu_
- INFO:tensorflow:Creating vocabulary lookup table of size 7
- INFO:tensorflow:Creating vocabulary lookup table of size 7
- INFO:tensorflow:Creating BidirectionalRNNEncoder in mode=train
- INFO:tensorflow:
- BidirectionalRNNEncoder:
- rnn_cell:
- cell_class: GRUCell
- cell_params: {num_units: 8}
- dropout_input_keep_prob: 1.0
- dropout_output_keep_prob: 1.0
- num_layers: 1
- residual_combiner: add
- residual_connections: false
- residual_dense: false
- /Users/akiiino/seq2seq/seq2seq/training/utils.py:118: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
- cell_args = set(inspect.getargspec(cell_class.__init__).args[1:])
- INFO:tensorflow:Creating AttentionLayerBahdanau in mode=train
- INFO:tensorflow:
- AttentionLayerBahdanau: {num_units: 10}
- INFO:tensorflow:Creating AttentionDecoder in mode=train
- INFO:tensorflow:
- AttentionDecoder:
- max_decode_length: 100
- rnn_cell:
- cell_class: GRUCell
- cell_params: {num_units: 8}
- dropout_input_keep_prob: 1.0
- dropout_output_keep_prob: 1.0
- num_layers: 1
- residual_combiner: add
- residual_connections: false
- residual_dense: false
- INFO:tensorflow:Creating ZeroBridge in mode=train
- INFO:tensorflow:
- ZeroBridge: {}
- INFO:tensorflow:Create CheckpointSaverHook.
- INFO:tensorflow:Saving checkpoints for 1 into /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpsedb3sm0/model.ckpt.
- INFO:tensorflow:loss = 1.89302, step = 1
- INFO:tensorflow:Saving checkpoints for 50 into /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpsedb3sm0/model.ckpt.
- /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()
- if "session" in inspect.getargspec(m.end).args:
- INFO:tensorflow:Loss for final step: 1.93904.
- INFO:tensorflow:Creating AttentionSeq2Seq in mode=eval
- INFO:tensorflow:
- AttentionSeq2Seq:
- attention.class: AttentionLayerBahdanau
- attention.params: {num_units: 10}
- bridge.class: seq2seq.models.bridges.ZeroBridge
- bridge.params: {}
- decoder.class: seq2seq.decoders.AttentionDecoder
- decoder.params:
- rnn_cell:
- cell_class: GRUCell
- cell_params: {num_units: 8}
- embedding.dim: 10
- embedding.share: false
- encoder.class: seq2seq.encoders.BidirectionalRNNEncoder
- encoder.params:
- rnn_cell:
- cell_class: GRUCell
- cell_params: {num_units: 8}
- inference.beam_search.beam_width: 0
- inference.beam_search.choose_successors_fn: choose_top_k
- inference.beam_search.length_penalty_weight: 0.0
- optimizer.clip_gradients: 5.0
- optimizer.learning_rate: 0.0001
- optimizer.lr_decay_rate: 0.99
- optimizer.lr_decay_steps: 100
- optimizer.lr_decay_type: ''
- optimizer.lr_min_learning_rate: 1.0e-12
- optimizer.lr_staircase: false
- optimizer.lr_start_decay_at: 0
- optimizer.lr_stop_decay_at: 1000000000.0
- optimizer.name: Adam
- source.max_seq_len: 50
- source.reverse: true
- target.max_seq_len: 50
- vocab_source: /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpn64fz560
- vocab_target: /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpt2zbhwu_
- INFO:tensorflow:Creating vocabulary lookup table of size 7
- INFO:tensorflow:Creating vocabulary lookup table of size 7
- INFO:tensorflow:Creating BidirectionalRNNEncoder in mode=eval
- INFO:tensorflow:
- BidirectionalRNNEncoder:
- rnn_cell:
- cell_class: GRUCell
- cell_params: {num_units: 8}
- dropout_input_keep_prob: 1.0
- dropout_output_keep_prob: 1.0
- num_layers: 1
- residual_combiner: add
- residual_connections: false
- residual_dense: false
- INFO:tensorflow:Creating AttentionLayerBahdanau in mode=eval
- INFO:tensorflow:
- AttentionLayerBahdanau: {num_units: 10}
- INFO:tensorflow:Creating AttentionDecoder in mode=eval
- INFO:tensorflow:
- AttentionDecoder:
- max_decode_length: 100
- rnn_cell:
- cell_class: GRUCell
- cell_params: {num_units: 8}
- dropout_input_keep_prob: 1.0
- dropout_output_keep_prob: 1.0
- num_layers: 1
- residual_combiner: add
- residual_connections: false
- residual_dense: false
- INFO:tensorflow:Creating ZeroBridge in mode=eval
- INFO:tensorflow:
- ZeroBridge: {}
- INFO:tensorflow:Starting evaluation at 2017-03-16-03:42:25
- INFO:tensorflow:Restoring parameters from /var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpsedb3sm0/model.ckpt-50
- 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
- 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)
- [[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)]]
- INFO:tensorflow:Finished evaluation at 2017-03-16-03:42:27
- 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
- /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
- key)
- WARNING:tensorflow:Skipping summary for global_step, must be a float or np.float32.
- INFO:tensorflow:Creating ParallelTextInputPipeline in mode=infer
- INFO:tensorflow:
- ParallelTextInputPipeline:
- num_epochs: 1
- shuffle: false
- source_delimiter: ' '
- source_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpmainlm_a]
- target_delimiter: ' '
- target_files: [/var/folders/18/8v6fn5kd3gs78d329jwhm5h00000gn/T/tmpu8n6d88b]
- E
- ======================================================================
- ERROR: test_train_infer (seq2seq.test.pipeline_test.PipelineTest)
- Tests training and inference scripts.
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/akiiino/seq2seq/seq2seq/test/pipeline_test.py", line 174, in test_train_infer
- infer_script.main([])
- File "/Users/akiiino/seq2seq/bin/infer.py", line 77, in main
- train_options = training_utils.TrainOptions.load(FLAGS.model_dir)
- File "/Users/akiiino/seq2seq/seq2seq/training/utils.py", line 93, in load
- options_dict = json.loads(file.read().decode("utf-8"))
- AttributeError: 'str' object has no attribute 'decode'
- ----------------------------------------------------------------------
- Ran 2 tests in 29.205s
- FAILED (errors=1)
- akiiinos-MBP:seq2seq akiiino$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement