We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7059eeb commit 6703e91Copy full SHA for 6703e91
.clang-format
@@ -0,0 +1,4 @@
1
+# Run manually to reformat a file:
2
+# clang-format -i --style=file <file>
3
+BasedOnStyle: Google
4
+DerivePointerAlignment: false
tensorflow/compiler/xla/python/types.h
@@ -118,6 +118,7 @@ pybind11::tuple SpanToTuple(absl::Span<int64_t const> xs);
118
template <typename T>
119
std::vector<T> IterableToVector(const pybind11::iterable& iterable) {
120
std::vector<T> output;
121
+ output.reserve(std::distance(iterable.begin(), iterable.end()));
122
for (auto item : iterable) {
123
output.push_back(item.cast<T>());
124
}
0 commit comments