def wrapDeconvNdBackwardData(grad, W, data, stride, pad, dilation, groups, algo): assert dilation == (1, 1) and groups == 1 return MIOpen.conv2dBackwardData(grad, W, data, stride, pad, mode=MIOpen.ConvMode.transpose, algo=algo)
def wrapConvNdBackwardData(grad, W, data, stride, pad, dilation, groups, algo): assert dilation == (1, 1) and groups == 1 return MIOpen.conv2dBackwardData(grad, W, data, stride, pad, algo=algo)