Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
a2b70758
"git@developer.sourcefind.cn:OpenDAS/bitsandbytes.git" did not exist on "cef519c89ed04fdd6f3c09a672f8520532a89994"
Unverified
Commit
a2b70758
authored
Mar 02, 2022
by
Prabhat Roy
Committed by
GitHub
Mar 02, 2022
Browse files
Remove unnecessary initialisation (#5507)
parent
cef22ea8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
torchvision/csrc/io/decoder/gpu/gpu_decoder.cpp
torchvision/csrc/io/decoder/gpu/gpu_decoder.cpp
+1
-2
No files found.
torchvision/csrc/io/decoder/gpu/gpu_decoder.cpp
View file @
a2b70758
...
@@ -29,8 +29,7 @@ torch::Tensor GPUDecoder::decode() {
...
@@ -29,8 +29,7 @@ torch::Tensor GPUDecoder::decode() {
unsigned
long
videoBytes
=
0
;
unsigned
long
videoBytes
=
0
;
uint8_t
*
video
=
nullptr
;
uint8_t
*
video
=
nullptr
;
at
::
cuda
::
CUDAGuard
device_guard
(
device
);
at
::
cuda
::
CUDAGuard
device_guard
(
device
);
auto
options
=
torch
::
TensorOptions
().
dtype
(
torch
::
kU8
).
device
(
torch
::
kCUDA
);
torch
::
Tensor
frame
;
torch
::
Tensor
frame
=
torch
::
zeros
({
0
},
options
);
do
{
do
{
demuxer
.
demux
(
&
video
,
&
videoBytes
);
demuxer
.
demux
(
&
video
,
&
videoBytes
);
decoder
.
decode
(
video
,
videoBytes
);
decoder
.
decode
(
video
,
videoBytes
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment