mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
codemode change missing [from D13586737]
Summary: as title Reviewed By: jerryzh168 Differential Revision: D15327669 fbshipit-source-id: e262dacb097e91475b1925ec40b375ec6722ad5a
This commit is contained in:
committed by
Facebook Github Bot
parent
e8fb5f35f0
commit
8e9692df27
@ -484,8 +484,10 @@ VideoInputOp<Context>::VideoInputOp(
|
||||
label_shape[1] = num_of_class_;
|
||||
ReinitializeTensor(&prefetched_label_, label_shape, at::dtype<int>().device(CPU));
|
||||
} else {
|
||||
prefetched_label_.Resize(
|
||||
vector<int64_t>(1, batch_size_ * clip_per_video_ * multi_crop_count_));
|
||||
ReinitializeTensor(
|
||||
&prefetched_label_,
|
||||
vector<int64_t>(1, batch_size_ * clip_per_video_ * multi_crop_count_),
|
||||
at::dtype<int>().device(CPU));
|
||||
}
|
||||
|
||||
ReinitializeTensor(&prefetched_video_id_, vector<int64_t>(1, batch_size_ * clip_per_video_ * multi_crop_count_), at::dtype<int>().device(CPU));
|
||||
|
Reference in New Issue
Block a user