File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
torchvision/csrc/io/decoder/gpu Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -48,18 +48,10 @@ jobs:
48
48
echo '::group::Setup environment'
49
49
CONDA_PATH=$(which conda)
50
50
eval "$(${CONDA_PATH} shell.bash hook)"
51
- # clang-format needs some shared libraries that conflict with the system ones. Thus, we install them from conda
52
- # and prepend the libraries to linker path to prioritize them. `ncurses=5` is only available on the conda-forge
53
- # channel. Since we are not building or testing here, this is fine.
54
51
conda create --name ci --quiet --yes -c conda-forge python=3.9 clang-format
55
52
conda activate ci
56
- # export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}"
57
53
echo '::endgroup::'
58
54
59
- # echo '::group::Install lint tools'
60
- # curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o ./clang-format
61
- # chmod +x ./clang-format
62
- # echo '::endgroup::'
63
55
64
56
echo '::group::Lint C source'
65
57
set +e
Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ int Decoder::handle_picture_display(CUVIDPARSERDISPINFO* disp_info) {
143
143
uint8_t * frame_ptr = decoded_frame.data_ptr <uint8_t >();
144
144
const uint8_t * const source_arr[] = {
145
145
(const uint8_t * const )source_frame,
146
- (const uint8_t * const )(source_frame + source_pitch * ((surface_height + 1 ) & ~1 ))};
146
+ (const uint8_t * const )(source_frame +
147
+ source_pitch * ((surface_height + 1 ) & ~1 ))};
147
148
148
149
auto err = nppiNV12ToRGB_709CSC_8u_P2C3R (
149
150
source_arr,
You can’t perform that action at this time.
0 commit comments