1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
| C:\Python36\python.exe D:/hierarchical-attention-networks-master/worker.py --mode=train --device=/gpu:0 --batch-size=30 epoch 1 data loaded 2018-03-12 21:59:50.508320: I C:\tf_jenkins\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 Traceback (most recent call last): File "D:/hierarchical-attention-networks-master/worker.py", line 207, in <module> main() File "D:/hierarchical-attention-networks-master/worker.py", line 202, in main train() File "D:/hierarchical-attention-networks-master/worker.py", line 153, in train model, saver = model_fn(s) File "D:/hierarchical-attention-networks-master/worker.py", line 86, in HAN_model_1 is_training=is_training, File "D:\hierarchical-attention-networks-master\HAN_model.py", line 67, in __init__ self._init_body(scope) File "D:\hierarchical-attention-networks-master\HAN_model.py", line 140, in _init_body self.sentence_cell, self.sentence_cell, sentence_inputs, self.sentence_lengths, scope=scope) File "D:\hierarchical-attention-networks-master\model_components.py", line 24, in bidirectional_rnn scope=scope)) File "C:\Python36\lib\site-packages\tensorflow\python\ops\rnn.py", line 416, in bidirectional_dynamic_rnn time_major=time_major, scope=fw_scope) File "C:\Python36\lib\site-packages\tensorflow\python\ops\rnn.py", line 632, in dynamic_rnn dtype=dtype) File "C:\Python36\lib\site-packages\tensorflow\python\ops\rnn.py", line 829, in _dynamic_rnn_loop swap_memory=swap_memory) File "C:\Python36\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 3096, in while_loop result = loop_context.BuildLoop(cond, body, loop_vars, shape_invariants) File "C:\Python36\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 2874, in BuildLoop pred, body, original_loop_vars, loop_vars, shape_invariants) File "C:\Python36\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 2814, in _BuildLoop body_result = body(*packed_vars_for_body) File "C:\Python36\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 3075, in <lambda> body = lambda i, lv: (i + 1, orig_body(*lv)) File "C:\Python36\lib\site-packages\tensorflow\python\ops\rnn.py", line 798, in _time_step skip_conditionals=True) File "C:\Python36\lib\site-packages\tensorflow\python\ops\rnn.py", line 249, in _rnn_step new_output, new_state = call_cell() File "C:\Python36\lib\site-packages\tensorflow\python\ops\rnn.py", line 786, in <lambda> call_cell = lambda: cell(input_t, state) File "C:\Python36\lib\site-packages\tensorflow\python\ops\rnn_cell_impl.py", line 190, in __call__ return super(RNNCell, self).__call__(inputs, state) File "C:\Python36\lib\site-packages\tensorflow\python\layers\base.py", line 696, in __call__ outputs = self.call(inputs, *args, **kwargs) File "C:\Python36\lib\site-packages\tensorflow\python\ops\rnn_cell_impl.py", line 1234, in call cur_inp, new_state = cell(cur_inp, cur_state) File "D:\hierarchical-attention-networks-master\bn_lstm.py", line 74, in __call__ initializer=orthogonal_initializer()) File "C:\Python36\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 1297, in get_variable constraint=constraint) File "C:\Python36\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 1093, in get_variable constraint=constraint) File "C:\Python36\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 431, in get_variable return custom_getter(**custom_getter_kwargs) File "C:\Python36\lib\site-packages\tensorflow\python\ops\rnn_cell_impl.py", line 193, in _rnn_get_variable variable = getter(*args, **kwargs) File "C:\Python36\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 408, in _true_getter use_resource=use_resource, constraint=constraint) File "C:\Python36\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 752, in _get_single_variable found_var.get_shape())) ValueError: Trying to share variable tcm/word/fw/multi_rnn_cell/cell_0/bn_lstm/W_xh, but specified shape (100, 320) and found shape (200, 320).
|