Hi, thanks for your reply. With the ‘torch.rand’ data as above, I get:
Unhandled exception at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: std::runtime_error at memory location 0x00000098549B7A80.
the output is:
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA678.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: torch::jit::constant_not_supported_error at memory location 0x00000098549BA648.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: c10::Error at memory location 0x00000098549BA210.
Exception thrown at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: std::runtime_error at memory location 0x00000098549B7A80.
Unhandled exception at 0x00007FFE50BD3FB8 in Segmentation.exe: Microsoft C++ exception: std::runtime_error at memory location 0x00000098549B7A80.