Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 30, 2024
1 parent a73e75d commit f039aa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transformer_engine/jax/csrc/extensions/ffi.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ T get_attr_value(Dictionary& attrs, std::string attr_name,
return attr.value();
}

inline size_t product(const xla::ffi::Span<const int64_t>& data, size_t start_idx = 0, size_t end_idx = 0) {
inline size_t product(const xla::ffi::Span<const int64_t>& data, size_t start_idx = 0,
size_t end_idx = 0) {
end_idx = (end_idx == 0) ? data.size() : end_idx;
return std::accumulate(data.begin() + start_idx, data.begin() + end_idx, size_t(1),
std::multiplies<size_t>());
Expand Down

0 comments on commit f039aa2

Please sign in to comment.