Commit 077970f7 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

Merge branch 'gather_operator' into seq2seq_example

parents 9c16a90e 463026f9
......@@ -774,8 +774,10 @@ struct gather
return {type, lens};
}
template <typename V, typename T>
T compute_data_index(const V& indices, const int axis_index, const T& out_idx) const
template <typename V>
std::vector<std::size_t> compute_data_index(const V& indices,
const int axis_index,
const std::vector<std::size_t>& out_idx) const
{
auto data_idx = out_idx;
std::size_t index{};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment