We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9d80d4 commit 276f2b5Copy full SHA for 276f2b5
src/torchcodec/_core/custom_ops.cpp
@@ -84,7 +84,9 @@ at::Tensor wrapDecoderPointerToTensor(
84
}
85
86
SingleStreamDecoder* unwrapTensorToGetDecoder(at::Tensor& tensor) {
87
- TORCH_INTERNAL_ASSERT(tensor.is_contiguous());
+ TORCH_CHECK(
88
+ tensor.is_contiguous(),
89
+ "fake decoder tensor must be contiguous! This is an internal error, please report on the torchcodec issue tracker.");
90
void* buffer = tensor.mutable_data_ptr();
91
SingleStreamDecoder* decoder = static_cast<SingleStreamDecoder*>(buffer);
92
return decoder;
0 commit comments