Skip to content

Commit a1aec37

Browse files
prabhat00155facebook-github-bot
authored andcommitted
[fbsync] Remove unnecessary initialisation (#5507)
Reviewed By: datumbox Differential Revision: D34579506 fbshipit-source-id: 915b9dfceacb922d27f323ec9af6c53af12e9ffa
1 parent 5cfff84 commit a1aec37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

torchvision/csrc/io/decoder/gpu/gpu_decoder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ torch::Tensor GPUDecoder::decode() {
2929
unsigned long videoBytes = 0;
3030
uint8_t* video = nullptr;
3131
at::cuda::CUDAGuard device_guard(device);
32-
auto options = torch::TensorOptions().dtype(torch::kU8).device(torch::kCUDA);
33-
torch::Tensor frame = torch::zeros({0}, options);
32+
torch::Tensor frame;
3433
do {
3534
demuxer.demux(&video, &videoBytes);
3635
decoder.decode(video, videoBytes);

0 commit comments

Comments
 (0)