Skip to content

Commit 211384e

Browse files
committed
Formatting
1 parent 91154ac commit 211384e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/tvm/relax/attrs/nn.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,7 @@ struct AttentionAttrs : public tvm::AttrsNode<AttentionAttrs> {
552552
Optional<IntImm> window_size;
553553

554554
TVM_DECLARE_ATTRS(AttentionAttrs, "relax.attrs.AttentionAttrs") {
555-
TVM_ATTR_FIELD(bias).describe(
556-
"The input bias tensor.");
555+
TVM_ATTR_FIELD(bias).describe("The input bias tensor.");
557556
TVM_ATTR_FIELD(scale).describe(
558557
"The custom scale applied before the softmax. The default value is 1 / sqrt(head_dim).");
559558
TVM_ATTR_FIELD(causal_mask)

src/relax/op/nn/attention.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ Expr attention(Expr query, Expr key, Expr value, Optional<Expr> bias, Optional<F
3636
attrs->window_size = window_size;
3737
attrs->bias = bias;
3838

39-
return Call(Op::Get("relax.nn.attention"),
40-
{std::move(query), std::move(key), std::move(value)},
39+
return Call(Op::Get("relax.nn.attention"), {std::move(query), std::move(key), std::move(value)},
4140
Attrs(attrs), {});
4241
}
4342

0 commit comments

Comments
 (0)