@@ -44,7 +44,7 @@ namespace infini::ops {
4444//
4545// Restrictions:
4646// - rotary_dim must equal head_size (full rotation only).
47- // - is_neox_style must be true (rotaryCoeff=2).
47+ // - is_neox_style must be true (` rotaryCoeff` =2).
4848// - fp16 only (ATB inference constraint).
4949template <>
5050class Operator <RotaryEmbedding, Device::Type::kAscend , 1 >
@@ -74,7 +74,7 @@ class Operator<RotaryEmbedding, Device::Type::kAscend, 1>
7474 aclrtMemcpy (cache_host.data (), table_bytes, cos_sin_cache.data (),
7575 table_bytes, ACL_MEMCPY_DEVICE_TO_HOST);
7676
77- // ATB Rope with rotaryCoeff=2 expects cos/sin of shape [S, D].
77+ // ATB Rope with ` rotaryCoeff` =2 expects cos/sin of shape [S, D].
7878 // Neox-style expansion: [c0..c_{hD-1}, c0..c_{hD-1}].
7979 std::vector<uint8_t > cos_host (table_bytes);
8080 std::vector<uint8_t > sin_host (table_bytes);
@@ -208,7 +208,7 @@ class Operator<RotaryEmbedding, Device::Type::kAscend, 1>
208208 ACL_MEMCPY_HOST_TO_DEVICE, stream);
209209 }
210210
211- // Build ATB VariantPack with 5 inputs + 2 outputs.
211+ // Build ATB ` VariantPack` with 5 inputs + 2 outputs.
212212 atb::Context* ctx = ascend::getAtbContext (stream);
213213
214214 uint64_t q_bytes = static_cast <uint64_t >(T * hiddenQ) * elem_size_;
@@ -233,7 +233,7 @@ class Operator<RotaryEmbedding, Device::Type::kAscend, 1>
233233 uint64_t ws_size = 0 ;
234234 atb::Status s = op_->Setup (vp, ws_size, ctx);
235235
236- assert (s == atb::NO_ERROR && " ATB Rope setup failed" );
236+ assert (s == atb::NO_ERROR && " ATB rope setup failed" );
237237
238238 uint8_t * ws_ptr = nullptr ;
239239
@@ -244,7 +244,7 @@ class Operator<RotaryEmbedding, Device::Type::kAscend, 1>
244244
245245 s = op_->Execute (vp, ws_ptr, ws_size, ctx);
246246
247- assert (s == atb::NO_ERROR && " ATB Rope execute failed" );
247+ assert (s == atb::NO_ERROR && " ATB rope execute failed" );
248248 }
249249
250250 private:
@@ -260,7 +260,7 @@ class Operator<RotaryEmbedding, Device::Type::kAscend, 1>
260260
261261 mutable size_t pos_buf_size_ = 0 ;
262262
263- // Cached shapes for ATB VariantPack.
263+ // Cached shapes for ATB ` VariantPack` .
264264 std::vector<int64_t > q_2d_shape_;
265265
266266 std::vector<int64_t > k_2d_shape_;
0 commit comments