AndrewZhaoLuo commented on a change in pull request #8816:
URL: https://github.com/apache/tvm/pull/8816#discussion_r698759127
##########
File path: src/relay/op/tensor/reduce.cc
##########
@@ -207,9 +208,29 @@ Array<te::Tensor> ReduceCompute(const Attrs& attrs, const
Array<te::Tensor>& inp
return {topi::identity(inputs[0])};
}
}
+
return {f(inputs[0], axes, param->keepdims, false)};
}
+template <typename F>
+Array<te::Tensor> OneElementReduceCompute(const Attrs& attrs, const
Array<te::Tensor>& inputs,
Review comment:
Hmm, I've changed it to ArgReduceCompute to be consistent with the other
naming suggested by Masa.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]