Skip to content

Commit 8dfbee9

Browse files
committed
Lint
1 parent fca8b83 commit 8dfbee9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/torchcodec/_core/Transform.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,13 @@ std::optional<FrameDims> CropTransform::getOutputFrameDims() const {
7575

7676
void 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

test/test_transform_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# LICENSE file in the root directory of this source tree.
66

77
import contextlib
8-
import os
98

109
import json
10+
import os
1111
import subprocess
1212

1313
import pytest

0 commit comments

Comments
 (0)