Skip to content

Commit

Permalink
Merge branch 'main' into models/efficientnet_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
datumbox authored Mar 2, 2022
2 parents a269432 + a2b7075 commit 364da8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions torchvision/csrc/io/decoder/gpu/gpu_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ torch::Tensor GPUDecoder::decode() {
unsigned long videoBytes = 0;
uint8_t* video = nullptr;
at::cuda::CUDAGuard device_guard(device);
auto options = torch::TensorOptions().dtype(torch::kU8).device(torch::kCUDA);
torch::Tensor frame = torch::zeros({0}, options);
torch::Tensor frame;
do {
demuxer.demux(&video, &videoBytes);
decoder.decode(video, videoBytes);
Expand Down

0 comments on commit 364da8f

Please sign in to comment.