Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tensorflow/compiler/xla/service/topk_rewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ limitations under the License.

#include "tensorflow/compiler/xla/service/topk_rewriter.h"

#include <array>
#include <memory>
#include <optional>
#include <vector>
Expand Down Expand Up @@ -151,7 +152,7 @@ static bool IsNanSafeGt(HloComputation* comp) {
// Look for the instructions emitted from: xla/client/lib/sorting.cc
static bool HasIota(HloSortInstruction* sort, HloInstruction* data) {
namespace m = match;
const auto sort_dims = {data->shape().dimensions(sort->sort_dimension())};
const std::array<int64_t, 1> sort_dims = {data->shape().dimensions(sort->sort_dimension())};
auto match_iota = [](auto dims) {
return m::Iota().WithShape(m::Shape().WithElementType(S32).WithDims(dims));
};
Expand Down