Traceback (most recent call last):


 "translation.py", line 135, in <module>

samples, scores, sample_valid_length = translator.translate(src_seq, src_valid_length)


 "translation.py", line 116, in translate

samples, scores, sample_valid_length = self._sampler(inputs, decoder_states)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/mxnet/gluon/block.py", line 548, in __call__

out = self.forward(*args)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/mxnet/gluon/block.py", line 915, in forward

return self._call_cached_op(x, *args)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/mxnet/gluon/block.py", line 805, in _call_cached_op

self._build_cache(*args)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/mxnet/gluon/block.py", line 757, in _build_cache

data, out = self._get_graph(*args)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/mxnet/gluon/block.py", line 749, in _get_graph

out = self.hybrid_forward(symbol, *grouped_inputs, **params)
# pylint: disable=no-value-for-parameter


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/gluonnlp/model/sequence_sampler.py", line 687, in hybrid_forward

) + tuple(states)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/mxnet/symbol/contrib.py", line 574, in while_loop

_create_subgraph(loop_vars, _func_wrapper, name + "_func")


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/mxnet/symbol/contrib.py", line 493, in _create_subgraph

outputs, final_state, out_fmt, var_fmt = graph_func(new_graph_vars)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/mxnet/symbol/contrib.py", line 470, in _func_wrapper

step_output, new_loop_vars = func(*loop_vars)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/gluonnlp/model/sequence_sampler.py", line 658, in _loop_func

step_input, _reconstruct_flattened_structure(state_structure, states))


 "translation.py", line 106, in _decode_logprob

out, states, _ = self._model.decode_step(step_input, states)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/gluonnlp/model/translation.py", line 188, in decode_step

self.decoder(self.tgt_embed(step_input), states)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/gluonnlp/model/transformer.py", line 1080, in __call__

return super(TransformerDecoder, self).__call__(step_input, states)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/gluonnlp/model/seq2seq_encoder_decoder.py", line 218, in __call__

return super(Seq2SeqDecoder, self).__call__(step_input, states)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/mxnet/gluon/block.py", line 548, in __call__

out = self.forward(*args)


 "/home/ec2-user/anaconda3/envs/gluon/lib/python3.7/site-packages/gluonnlp/model/transformer.py", line 1083, in forward

input_shape = step_input.shape
AttributeError: 'Symbol' object has no attribute 'shape'

Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "/Users/Julian/.local/share/virtualenvs/thingy/site-packages/github3/repos/repo.py", line 1171, in directory_contents

for j in json)


 "/Users/Julian/.local/share/virtualenvs/thingy/site-packages/github3/repos/repo.py", line 1171, in <genexpr>

for j in json)
AttributeError: 'unicode' object has no attribute 'get'
