Skip to content

Commit

Permalink
Merge pull request #52864 from tensorflow/fix-build-1-on-r2.6
Browse files Browse the repository at this point in the history
Fix build broken by merge conflict in `tensorflow/core/kernels/sequen…
  • Loading branch information
mihaimaruseac committed Oct 29, 2021
2 parents 0e258b8 + fd11c17 commit c42e447
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tensorflow/core/kernels/sequence_ops.cc
Expand Up @@ -78,6 +78,8 @@ class RangeOp : public OpKernel {
} else {
size = static_cast<int64>(std::ceil(std::abs((limit - start) / delta)));
}
TensorShape shape;
OP_REQUIRES_OK(context, shape.AddDimWithStatus(size));
Tensor* out = nullptr;
OP_REQUIRES_OK(context, context->allocate_output(0, shape, &out));
auto flat = out->flat<T>();
Expand Down

0 comments on commit c42e447

Please sign in to comment.