Traceback (most recent call last):


 "run_exp.py", line 68, in <module>

algo.train()


 "C:\stageI\trainer.py", line 306, in train

counter = self.build_model(sess)


 "C:\stageI\trainer.py", line 280, in build_model

self.init_opt()


 "C:\stageI\trainer.py", line 97, in init_opt

c, kl_loss = self.sample_encoded_context(self.embeddings)


 "C:\stageI\trainer.py", line 76, in sample_encoded_context

c_mean_logsigma = self.model.generate_condition(embeddings)


 "C:\stageI\model.py", line 47, in generate_condition

custom_fully_connected(self.ef_dim * 2).


 "C:\Users\HP\Anaconda3\lib\site-packages\prettytensor\pretty_tensor_class.py", line 1973, in method

return input_layer._method_complete(result)


 "C:\Users\HP\Anaconda3\lib\site-packages\prettytensor\pretty_tensor_class.py", line 691, in _method_complete

return self.with_tensor(result)


 "C:\Users\HP\Anaconda3\lib\site-packages\prettytensor\pretty_tensor_class.py", line 978, in with_tensor

layer = Layer(copy=self, tensor=unwrap(tensor), sequence=None)


 "C:\Users\HP\Anaconda3\lib\site-packages\prettytensor\pretty_tensor_class.py", line 931, in __init__

self._name = self._sequence[0].op.name
TypeError: 'NoneType' object is not subscriptable
Traceback (most recent call last):


 "/media/boystray/two/githome/espnet/egs/an4/asr1/../../../espnet/bin/asr_train.py", line 380, in <module>

main(sys.argv[1:])


 "/media/boystray/two/githome/espnet/egs/an4/asr1/../../../espnet/bin/asr_train.py", line 365, in main

train(args)


 "/media/boystray/two/githome/espnet/espnet/asr/chainer_backend/asr.py", line 358, in train

trainer.run()


 "/media/boystray/two/githome/espnet/tools/venv/lib/python3.7/site-packages/chainer/training/trainer.py", line 349, in run

six.reraise(*exc_info)


 "/media/boystray/two/githome/espnet/tools/venv/lib/python3.7/site-packages/six.py", line 693, in reraise

raise value


 "/media/boystray/two/githome/espnet/tools/venv/lib/python3.7/site-packages/chainer/training/trainer.py", line 316, in run

update()


 "/media/boystray/two/githome/espnet/espnet/nets/chainer_backend/rnn/training.py", line 111, in update

self.update_core()


 "/media/boystray/two/githome/espnet/espnet/nets/chainer_backend/rnn/training.py", line 91, in update_core

loss = optimizer.target(*x) / self.accum_grad


 "/media/boystray/two/githome/espnet/tools/venv/lib/python3.7/site-packages/chainer/link.py", line 294, in __call__

out = forward(*args, **kwargs)


 "/media/boystray/two/githome/espnet/espnet/nets/chainer_backend/e2e_asr.py", line 119, in forward

self.loss = alpha * loss_ctc + (1 - alpha) * loss_att
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'`
