LTR例子中直接运行python ranknet.py出现错误
Created by: lutaojian
$ python ranknet.py I0713 17:47:23.595508 19546 Util.cpp:166] commandline: --use_gpu=False --trainer_count=4 I0713 17:47:23.610213 19546 GradientMachine.cpp:85] Initing parameters.. I0713 17:47:23.610375 19546 GradientMachine.cpp:92] Init parameters done. Traceback (most recent call last): File "ranknet.py", line 134, in train_ranknet(pass_num) File "ranknet.py", line 94, in train_ranknet num_passes=num_passes) File "/home/users/lutaojian/work/paddle/paddle-binary/python27/lib/python2.7/site-packages/paddle/v2/trainer.py", line 153, in train in_args = feeder(data_batch) File "/home/users/lutaojian/work/paddle/paddle-binary/python27/lib/python2.7/site-packages/py_paddle/dataprovider_converter.py", line 278, in call return self.convert(dat, argument) File "/home/users/lutaojian/work/paddle/paddle-binary/python27/lib/python2.7/site-packages/paddle/v2/data_feeder.py", line 134, in convert return DataProviderConverter.convert(self, reorder_data(dat), argument) File "/home/users/lutaojian/work/paddle/paddle-binary/python27/lib/python2.7/site-packages/py_paddle/dataprovider_converter.py", line 263, in convert scanner.pre_scan(each_step) File "/home/users/lutaojian/work/paddle/paddle-binary/python27/lib/python2.7/site-packages/py_paddle/dataprovider_converter.py", line 112, in pre_scan self.dim = reduce(lambda x, y: x * y, self.shape)