AutoDL/LRC 模型训练 module 'paddle.fluid.layers' has no attribute 'adaptive_pool2d'
Created by: zzdgit
我使用版本为:python 3.5.2 paddlepaddle-gpu 1.2.1.post97
执行./models/fluid/AutoDL/LRC/run.sh 时,报错如下:
Traceback (most recent call last):
File "train_mixup.py", line 247, in <module>
main()
File "train_mixup.py", line 116, in main
train(model, args, image_shape, steps_one_epoch)
File "train_mixup.py", line 153, in train
steps_one_epoch)
File "train_mixup.py", line 128, in build_program
args.batch_size, args.lrc_loss_lambda)
File "/home/zhouzhengdong/models/fluid/AutoDL/LRC/model.py", line 255, in train_model
self.logits, self.logits_aux = self.forward(init_channels, True)
File "/home/zhouzhengdong/models/fluid/AutoDL/LRC/model.py", line 217, in forward
out = fluid.layers.adaptive_pool2d(s1, (1, 1), "avg")
AttributeError: module 'paddle.fluid.layers' has no attribute 'adaptive_pool2d'
我也去官网查了,在fluid.layers这个下面没有adaptive_pool2d方法。 这要怎么解决?