From a3bd60838999b19cb413979646cd2f67406b0835 Mon Sep 17 00:00:00 2001 From: fengjk12138 <50436440+fengjk12138@users.noreply.github.com> Date: Thu, 26 Oct 2023 14:20:44 +0800 Subject: [PATCH] 'torch.dtype' object is not callable --- mmcv/ops/prroi_pool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmcv/ops/prroi_pool.py b/mmcv/ops/prroi_pool.py index 8c263e3078..c36661ae4a 100644 --- a/mmcv/ops/prroi_pool.py +++ b/mmcv/ops/prroi_pool.py @@ -35,8 +35,8 @@ def forward(ctx, spatial_scale: float = 1.0) -> torch.Tensor: if features.dtype != torch.float32 or rois.dtype != torch.float32: raise ValueError('Precise RoI Pooling only takes float input, got ' - f'{features.dtype()} for features and' - f'{rois.dtype()} for rois.') + f'{features.dtype} for features and' + f'{rois.dtype} for rois.') pooled_height = int(output_size[0]) pooled_width = int(output_size[1])