File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,13 @@ std::optional<FrameDims> CropTransform::getOutputFrameDims() const {
7575
7676void CropTransform::validate (const StreamMetadata& streamMetadata) const {
7777 TORCH_CHECK (x_ <= streamMetadata.width , " Crop x position out of bounds" );
78- TORCH_CHECK (x_ + outputDims_.width <= streamMetadata.width , " Crop x position out of bounds" )
78+ TORCH_CHECK (
79+ x_ + outputDims_.width <= streamMetadata.width ,
80+ " Crop x position out of bounds" )
7981 TORCH_CHECK (y_ <= streamMetadata.height , " Crop y position out of bounds" );
80- TORCH_CHECK (y_ + outputDims_.height <= streamMetadata.height , " Crop y position out of bounds" );
82+ TORCH_CHECK (
83+ y_ + outputDims_.height <= streamMetadata.height ,
84+ " Crop y position out of bounds" );
8185}
8286
8387} // namespace facebook::torchcodec
Original file line number Diff line number Diff line change 55# LICENSE file in the root directory of this source tree.
66
77import contextlib
8- import os
98
109import json
10+ import os
1111import subprocess
1212
1313import pytest
You can’t perform that action at this time.
0 commit comments