Lunderberg commented on code in PR #16184:
URL: https://github.com/apache/tvm/pull/16184#discussion_r1432175861
##########
src/tir/ir/specialize.cc:
##########
@@ -115,18 +116,18 @@ class PrimFuncSpecializer : public StmtExprMutator {
private:
Stmt VisitStmt_(const BlockNode* op) final {
// Step.0. Define buffer mappings which is allocated inside the block
- Array<Buffer> alloc_buffers = op->alloc_buffers.Map(
- std::bind(&PrimFuncSpecializer::MutateAllocBuffer, this,
std::placeholders::_1));
+ Array<Buffer> alloc_buffers =
+ op->alloc_buffers.Map([this](const auto& buf) { return
MutateAllocBuffer(buf); });
Review Comment:
Agreed. I always need to pause when encountering `std::placeholders`, and
try to replace it when reasonable to do so.
--
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]