8000 Update base for Update on "[caffe2] Remove IValue include from operat… · pytorch/pytorch@2bccddc · GitHub
[go: up one dir, main page]

Skip to content

Commit 2bccddc

Browse files
committed
Update base for Update on "[caffe2] Remove IValue include from operator.h"
ivalue.h includes Tensor.h, so creating a compilation barrier between operator.h and ivalue.h means non-exported caffe2 ops don't need to be rebuilt as often when developing PyTorch. [ghstack-poisoned]
1 parent 5950c1e commit 2bccddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caffe2/core/operator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ OperatorBase::OperatorBase(
127127
input_size_(compute_input_size_(newstyle_inputs_)) {
128128
input_tensors_.resize(input_size_);
129129

130-
output_tensors_.reserve(outputs_.size());
130+
output_tensors_.reserve(outputs.size());
131131
for (auto i : c10::irange(outputs.size())) {
132132
output_tensors_.emplace_back(outputs.extract(i));
133133
}

0 commit comments

Comments
 (0)
0