Skip to content

Commit

Permalink
Revert reserving extra space in input desc vector
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Tokarski <[email protected]>
  • Loading branch information
stiepan committed Jun 20, 2022
1 parent 9a22f59 commit 754d1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dali/pipeline/operator/sequence_operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class SequenceOperator : public Operator<Backend>, protected SampleBroadcasting<
void SetupSequenceOperator(const workspace_t<Backend> &ws) {
auto num_inputs = ws.NumInput();
input_expand_desc_.clear();
input_expand_desc_.reserve(num_inputs + 1);
input_expand_desc_.reserve(num_inputs);
for (int input_idx = 0; input_idx < num_inputs; input_idx++) {
const auto &input_shape = ws.GetInputShape(input_idx);
const auto &layout = GetInputLayout(ws, input_idx);
Expand Down

0 comments on commit 754d1d0

Please sign in to comment.