问题确认 Search before asking
Bug组件 Bug Component
No response
Bug描述 Describe the Bug
cuda11.2 paddledetection=2.8 paddle=2.6 计算量YOLOX 的flops打印总是报错 File "/home/easyits/ai/wp/PaddleDetection2.8/ppdet/modeling/heads/yolo_head.py", line 253, in _generate_anchor_point
[len(anchor_points[-1]), 1], stride, dtype=self._dtype))
TypeError: object of type 'Variable' has no len() paddleslim版本是2.6.0
复现环境 Environment
cuda11.2 paddledetection=2.8 paddle=2.6 计算量YOLOX 的flops打印总是报错 File "/home/easyits/ai/wp/PaddleDetection2.8/ppdet/modeling/heads/yolo_head.py", line 253, in _generate_anchor_point
[len(anchor_points[-1]), 1], stride, dtype=self._dtype))
TypeError: object of type 'Variable' has no len() paddleslim版本是2.6.0
Bug描述确认 Bug description confirmation
是否愿意提交PR? Are you willing to submit a PR?
问题确认 Search before asking
Bug组件 Bug Component
No response
Bug描述 Describe the Bug
cuda11.2 paddledetection=2.8 paddle=2.6 计算量YOLOX 的flops打印总是报错 File "/home/easyits/ai/wp/PaddleDetection2.8/ppdet/modeling/heads/yolo_head.py", line 253, in _generate_anchor_point
[len(anchor_points[-1]), 1], stride, dtype=self._dtype))
TypeError: object of type 'Variable' has no len() paddleslim版本是2.6.0
复现环境 Environment
cuda11.2 paddledetection=2.8 paddle=2.6 计算量YOLOX 的flops打印总是报错 File "/home/easyits/ai/wp/PaddleDetection2.8/ppdet/modeling/heads/yolo_head.py", line 253, in _generate_anchor_point
[len(anchor_points[-1]), 1], stride, dtype=self._dtype))
TypeError: object of type 'Variable' has no len() paddleslim版本是2.6.0
Bug描述确认 Bug description confirmation
是否愿意提交PR? Are you willing to submit a PR?