Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Nov 29, 2018
1 parent eb0f3c8 commit 8f9e396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/relay/pass/alter_op_layout.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class LayoutAlternatedExprNode : public TempExprNode {

RELAY_DEFINE_NODE_REF(LayoutAlternatedExpr, LayoutAlternatedExprNode, TempExpr);

// Call FInferCorrectLayout of an op.
// Call registered FInferCorrectLayout of an op.
// Return inferred_input_layout, inferred_output_layout, success
std::tuple<Array<Layout>, Array<Layout>, bool> CallInfer(
const Call& call,
Expand Down Expand Up @@ -187,7 +187,7 @@ Expr AlterOpLayoutRewrite(const Call &ref_call,
for (auto new_arg : new_args) {
auto push_back_one_arg = [&](Expr arg) {
// We always expect LayoutAlternatedExpr.
// This is used to convert the normal expr into LayoutAlternatedExpr.
// This is used to convert the normal Expr to LayoutAlternatedExpr.
if (const LayoutAlternatedExprNode *inp = arg.as<LayoutAlternatedExprNode>()) {
inputs.push_back(GetRef<LayoutAlternatedExpr>(inp));
normal_new_args.push_back(inp->value);
Expand Down

0 comments on commit 8f9e396

Please sign in to comment.