Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ set(TORCHVISION_STABLE_SOURCES
${TVCPP}/ops/cpu/ps_roi_align_kernel.cpp
${TVCPP}/ops/deform_conv2d.cpp
${TVCPP}/ops/cpu/deform_conv2d_kernel.cpp
${TVCPP}/ops/cuda/deform_conv2d_kernel.cu
${TVCPP}/io/image/cuda/decode_jpegs_cuda.cpp
${TVCPP}/io/image/cuda/encode_jpegs_cuda.cpp
${TVCPP}/io/image/cpu/encode_png.cpp
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def get_macros_and_flags():
)
STABLE_SOURCES.add(CSRS_DIR / ("ops/hip/roi_pool_kernel.hip" if IS_ROCM else "ops/cuda/roi_pool_kernel.cu"))
STABLE_SOURCES.add(CSRS_DIR / ("ops/hip/roi_align_kernel.hip" if IS_ROCM else "ops/cuda/roi_align_kernel.cu"))
STABLE_SOURCES.add(CSRS_DIR / ("ops/hip/deform_conv2d_kernel.hip" if IS_ROCM else "ops/cuda/deform_conv2d_kernel.cu"))


def _not_stable(paths):
Expand Down
2 changes: 2 additions & 0 deletions torchvision/_autograd_registrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def _deform_conv2d_setup_context(ctx, inputs, output):


def _deform_conv2d_backward(ctx, grad_output):
if grad_output.device.type == "cuda":
torch._prims_common.alert_not_deterministic("compute_grad_input")
input, weight, offset, mask, bias = ctx.saved_tensors
grad_input, grad_weight, grad_offset, grad_mask, grad_bias = torch.ops.torchvision._deform_conv2d_backward(
grad_output,
Expand Down
Loading
Loading