Traceback (most recent call last):


 "/home/william/speech/sphinx/g2p-seq2seq/tests/g2p_unittest.py", line 34, in test_decode

g2p_model = G2PModel(params, test_path=decode_file_path)


 "/home/william/speech/sphinx/g2p-seq2seq/g2p_seq2seq/g2p.py", line 89, in __init__

self.__prepare_model()


 "/home/william/speech/sphinx/g2p-seq2seq/g2p_seq2seq/g2p.py", line 102, in __prepare_model

self.params)


 "/home/william/speech/sphinx/g2p-seq2seq/g2p_seq2seq/g2p_trainer_utils.py", line 230, in create_run_config

use_tpu=params.use_tpu)
TypeError: create_run_config() got an unexpected keyword argument 'shard_to_cpu'

Traceback (most recent call last):


 "translate.py", line 127, in <module>

main()


 "translate.py", line 66, in main

for batch in test_data:


 "/home/yzf/anaconda3/lib/python3.6/site-packages/torchtext/data/iterator.py", line 178, in __iter__

self.train)


 "/home/yzf/anaconda3/lib/python3.6/site-packages/torchtext/data/batch.py", line 22, in __init__

setattr(self, name, field.process(batch, device=device, train=train))


 "/home/yzf/anaconda3/lib/python3.6/site-packages/torchtext/data/field.py", line 184, in process

tensor = self.numericalize(padded, device=device, train=train)


 "/home/yzf/anaconda3/lib/python3.6/site-packages/torchtext/data/field.py", line 294, in numericalize

arr = [numericalization_func(x) for x in arr]


 "/home/yzf/anaconda3/lib/python3.6/site-packages/torchtext/data/field.py", line 294, in <listcomp>

arr = [numericalization_func(x) for x in arr]
TypeError: float() argument must be a string or a number, not 'torch.LongTensor'
