tensorflow/compiler/mlir/xla/transforms/legalize_tf.cc
// Returns a 1-d i64 elements attribute populated with numbers from start to
// end, excluding.
Returns a 1-d i64 elements attribute populated with numbers from start to
end, excluding.
Returns a 1 - d i64 elements attribute populated with numbers from start to end excluding .
static DenseIntElementsAttr GetI64ElementsAttrForSeq(int start, int end,
                                                     Builder *builder) {
  int size = end - start;
  SmallVector<int64_t, 4> vals;
  vals.resize(size);
  std::iota(vals.begin(), vals.end(), start);
  TensorType ty = RankedTensorType::get({size}, builder->getIntegerType(64));
  return DenseIntElementsAttr::get(ty, vals);
}
static DenseIntElementsAttr GetI64ElementsAttrForSeq ( int start , int end , Builder * builder ) { int size = end - start ; SmallVector < int64_t , 4 > vals ; vals . resize ( size ) ; std :: iota ( vals . begin ( ) , vals . end ( ) , start ) ; TensorType ty = RankedTensorType :: get ( { size } , builder -> getIntegerType ( 64 ) ) ; return DenseIntElementsAttr :: get ( ty , vals ) ; }
Returns a 1-d i64 elements attribute populated with numbers from start to
end, excluding.
Returns a 1 - d i64 elements attribute populated with numbers from start to end excluding .