Skip to content

Commit c42e447

Browse files
Merge pull request #52864 from tensorflow/fix-build-1-on-r2.6
Fix build broken by merge conflict in `tensorflow/core/kernels/sequen…
2 parents 0e258b8 + fd11c17 commit c42e447

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tensorflow/core/kernels/sequence_ops.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class RangeOp : public OpKernel {
7878
} else {
7979
size = static_cast<int64>(std::ceil(std::abs((limit - start) / delta)));
8080
}
81+
TensorShape shape;
82+
OP_REQUIRES_OK(context, shape.AddDimWithStatus(size));
8183
Tensor* out = nullptr;
8284
OP_REQUIRES_OK(context, context->allocate_output(0, shape, &out));
8385
auto flat = out->flat<T>();

0 commit comments

Comments
 (0)