Skip to content

Exception: could not create a primitive descriptor for the deconvolution forward propagation primitive. in test/functorch/test_ops.py #2239

@zxd1997066

Description

@zxd1997066

🐛 Describe the bug

Cases:
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vjp_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vjp_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapjvpall_has_batch_rule_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapjvpall_has_batch_rule_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_grad_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_grad_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_jvpvjp_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_jvpvjp_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vjpvmap_nn_functional_conv3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vjpvmap_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vjpvmap_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapvjp_nn_functional_conv3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapvjp_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapvjp_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vjpvjp_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vjpvjp_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_jvp_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_jvp_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapjvpall_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapjvpall_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapjvpvjp_nn_functional_conv3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapvjp_has_batch_rule_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapvjp_has_batch_rule_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapjvpvjp_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapjvpvjp_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapvjpvjp_nn_functional_conv3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapvjpvjp_nn_functional_conv_transpose2d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapvjpvjp_nn_functional_conv_transpose3d_xpu_float32
op_ut,third_party.torch-xpu-ops.test.xpu.functorch.test_ops_functorch_xpu.TestOperatorsXPU,test_vmapjvpall_nn_functional_conv_transpose2d_xpu_float32

_____ TestOperatorsXPU.test_vjp_nn_functional_conv_transpose2d_xpu_float32 _____
[gw2] linux -- Python 3.10.19 /tmp/xpu-tool/Python/3.10.19/x64/bin/python
Traceback (most recent call last):
  File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1151, in test_wrapper
    return test(*args, **kwargs)
  File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_cuda.py", line 291, in wrapped
    return f(*args, **kwargs)
  File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/functorch/test_ops_functorch_xpu.py", line 850, in test_vjp
    _test(op)
  File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/functorch/test_ops_functorch_xpu.py", line 826, in _test
    result = fn(*primals)
  File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/functorch/test_ops_functorch_xpu.py", line 149, in wrapped
    result = f(*_args, **kwargs)
  File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/opinfo/core.py", line 1186, in __call__
    return self.op(*args, **kwargs)
RuntimeError: could not create a primitive descriptor for the deconvolution forward propagation primitive. Run workload with environment variable ONEDNN_VERBOSE=all to get additional diagnostic information.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/unittest/case.py", line 591, in run
    self._callTestMethod(testMethod)
  File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/unittest/case.py", line 549, in _callTestMethod
    method()
  File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 3300, in wrapper
    method(*args, **kwargs)
  File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 428, in instantiated_test
    result = test(self, **param_kwargs)
  File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 1707, in wrapper
    fn(*args, **kwargs)
  File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1163, in test_wrapper
    raise e_tracked from e
Exception: could not create a primitive descriptor for the deconvolution forward propagation primitive. Run workload with environment variable ONEDNN_VERBOSE=all to get additional diagnostic information.

Caused by sample input at index 2: SampleInput(input=Tensor[size=(2, 2, 4, 4), device="xpu:0", dtype=torch.float32], args=TensorList[Tensor[size=(2, 2, 4, 5), device="xpu:0", dtype=torch.float32], Tensor[size=(4,), device="xpu:0", dtype=torch.float32]], kwargs={'stride': '(3,2)', 'padding': '(1,2)', 'output_padding': '(2,3)', 'groups': '2', 'dilation': '(4,4)'}, broadcasts_input=False, name='')

To execute this test, run the following from the base repo dir:
    PYTORCH_OPINFO_SAMPLE_INPUT_INDEX=2 PYTORCH_TEST_WITH_SLOW=1 python test/xpu/functorch/test_ops_functorch_xpu.py TestOperatorsXPU.test_vjp_nn_functional_conv_transpose2d_xpu_float32

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0

Versions

#2210

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions