Skip to content

Commit 9f35e34

Browse files
datumboxfacebook-github-bot
authored andcommitted
Removed all backward methods from header files. (#3143)
Reviewed By: fmassa Differential Revision: D25460678 fbshipit-source-id: 708f1a57091bed84381895184ae77a866eb1762b
1 parent b5b2a2c commit 9f35e34

File tree

6 files changed

+0
-80
lines changed

6 files changed

+0
-80
lines changed

torchvision/csrc/deform_conv2d.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace vision {
77
namespace ops {
88

9-
// C++ Forward
109
VISION_API at::Tensor deform_conv2d(
1110
const at::Tensor& input,
1211
const at::Tensor& weight,
@@ -23,25 +22,5 @@ VISION_API at::Tensor deform_conv2d(
2322
int64_t offset_groups,
2423
bool use_mask);
2524

26-
// C++ Backward
27-
VISION_API
28-
std::tuple<at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor>
29-
_deform_conv2d_backward(
30-
const at::Tensor& grad,
31-
const at::Tensor& input,
32-
const at::Tensor& weight,
33-
const at::Tensor& offset,
34-
const at::Tensor& mask,
35-
const at::Tensor& bias,
36-
int64_t stride_h,
37-
int64_t stride_w,
38-
int64_t pad_h,
39-
int64_t pad_w,
40-
int64_t dilation_h,
41-
int64_t dilation_w,
42-
int64_t groups,
43-
int64_t offset_groups,
44-
bool use_mask);
45-
4625
} // namespace ops
4726
} // namespace vision

torchvision/csrc/nms.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace vision {
77
namespace ops {
88

9-
// C++ Forward
109
VISION_API at::Tensor nms(
1110
const at::Tensor& dets,
1211
const at::Tensor& scores,

torchvision/csrc/ps_roi_align.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace vision {
77
namespace ops {
88

9-
// C++ Forward
109
VISION_API std::tuple<at::Tensor, at::Tensor> ps_roi_align(
1110
const at::Tensor& input,
1211
const at::Tensor& rois,
@@ -15,19 +14,5 @@ VISION_API std::tuple<at::Tensor, at::Tensor> ps_roi_align(
1514
int64_t pooled_width,
1615
int64_t sampling_ratio);
1716

18-
// C++ Backward
19-
VISION_API at::Tensor _ps_roi_align_backward(
20-
const at::Tensor& grad,
21-
const at::Tensor& rois,
22-
const at::Tensor& channel_mapping,
23-
double spatial_scale,
24-
int64_t pooled_height,
25-
int64_t pooled_width,
26-
int64_t sampling_ratio,
27-
int64_t batch_size,
28-
int64_t channels,
29-
int64_t height,
30-
int64_t width);
31-
3217
} // namespace ops
3318
} // namespace vision

torchvision/csrc/ps_roi_pool.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,12 @@
66
namespace vision {
77
namespace ops {
88

9-
// C++ Forward
109
VISION_API std::tuple<at::Tensor, at::Tensor> ps_roi_pool(
1110
const at::Tensor& input,
1211
const at::Tensor& rois,
1312
double spatial_scale,
1413
int64_t pooled_height,
1514
int64_t pooled_width);
1615

17-
// C++ Backward
18-
VISION_API at::Tensor _ps_roi_pool_backward(
19-
const at::Tensor& grad,
20-
const at::Tensor& rois,
21-
const at::Tensor& channel_mapping,
22-
double spatial_scale,
23-
int64_t pooled_height,
24-
int64_t pooled_width,
25-
int64_t batch_size,
26-
int64_t channels,
27-
int64_t height,
28-
int64_t width);
29-
3016
} // namespace ops
3117
} // namespace vision

torchvision/csrc/roi_align.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace vision {
77
namespace ops {
88

9-
// C++ Forward
109
VISION_API at::Tensor roi_align(
1110
const at::Tensor& input,
1211
const at::Tensor& rois,
@@ -16,19 +15,5 @@ VISION_API at::Tensor roi_align(
1615
int64_t sampling_ratio,
1716
bool aligned);
1817

19-
// C++ Backward
20-
VISION_API at::Tensor _roi_align_backward(
21-
const at::Tensor& grad,
22-
const at::Tensor& rois,
23-
double spatial_scale,
24-
int64_t pooled_height,
25-
int64_t pooled_width,
26-
int64_t batch_size,
27-
int64_t channels,
28-
int64_t height,
29-
int64_t width,
30-
int64_t sampling_ratio,
31-
bool aligned);
32-
3318
} // namespace ops
3419
} // namespace vision

torchvision/csrc/roi_pool.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,12 @@
66
namespace vision {
77
namespace ops {
88

9-
// C++ Forward
109
VISION_API std::tuple<at::Tensor, at::Tensor> roi_pool(
1110
const at::Tensor& input,
1211
const at::Tensor& rois,
1312
double spatial_scale,
1413
int64_t pooled_height,
1514
int64_t pooled_width);
1615

17-
// C++ Backward
18-
VISION_API at::Tensor _roi_pool_backward(
19-
const at::Tensor& grad,
20-
const at::Tensor& rois,
21-
const at::Tensor& argmax,
22-
double spatial_scale,
23-
int64_t pooled_height,
24-
int64_t pooled_width,
25-
int64_t batch_size,
26-
int64_t channels,
27-
int64_t height,
28-
int64_t width);
29-
3016
} // namespace ops
3117
} // namespace vision

0 commit comments

Comments
 (0)