Traceback (most recent call last):


 "/home/user/wspace/electrum/gui/qt/main_window.py", line 901, in save_payment_request

self.request_list.update()


 "/home/user/wspace/electrum/gui/qt/util.py", line 475, in update

self.on_update()


 "/home/user/wspace/electrum/gui/qt/request_list.py", line 86, in on_update

for req in self.wallet.get_sorted_requests(self.config):


 "/home/user/wspace/electrum/lib/wallet.py", line 1319, in get_sorted_requests

return sorted(map(lambda x: self.get_payment_request(x, config), self.receive_requests.keys()), key=f)
TypeError: unorderable types: NoneType() < NoneType()

Traceback (most recent call last):


 "pretraining.py", line 359, in <module>

main(args)


 "pretraining.py", line 351, in main

trainer = trainer_class(params, readers, model)


 "pretraining.py", line 152, in __init__

BaseTrainer.__init__(self, params, data_set_reader, model_class)


 "/home/lbj/projects/Senta-master/senta/training/base_trainer.py", line 48, in __init__

self.init_net()


 "/home/lbj/projects/Senta-master/senta/training/base_trainer.py", line 137, in init_net

self.init_train_net()


 "/home/lbj/projects/Senta-master/senta/training/base_trainer.py", line 161, in init_train_net

**opt_args)


 "/home/lbj/projects/Senta-master/senta/training/base_trainer.py", line 776, in optimization

_, param_grads = optimizer.minimize(loss)


 "<decorator-gen-66>", line 2, in minimize


 "/home/lbj/anaconda3/lib/python3.7/site-packages/paddle/fluid/dygraph/base.py", line 277, in __impl__

return func(*args, **kwargs)


 "/home/lbj/anaconda3/lib/python3.7/site-packages/paddle/fluid/optimizer.py", line 835, in minimize

no_grad_set=no_grad_set)


 "/home/lbj/anaconda3/lib/python3.7/site-packages/paddle/fluid/optimizer.py", line 673, in backward

loss.shape)
AssertionError: The loss.shape should be (1L,), but the current loss.shape is (-1,). Maybe that you should call fluid.layers.mean to process the current loss.
