Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
c905fd63
Commit
c905fd63
authored
Apr 17, 2025
by
PanZezhong
Browse files
issue/48/fix type convert and format
parent
bf4f41b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/infiniop/ops/rope/cpu/rope_cpu.cc
src/infiniop/ops/rope/cpu/rope_cpu.cc
+1
-1
src/infiniop/ops/rope/rope.h
src/infiniop/ops/rope/rope.h
+2
-2
No files found.
src/infiniop/ops/rope/cpu/rope_cpu.cc
View file @
c905fd63
...
@@ -115,4 +115,4 @@ infiniStatus_t Descriptor::calculate(
...
@@ -115,4 +115,4 @@ infiniStatus_t Descriptor::calculate(
#undef ROPE_TYPE
#undef ROPE_TYPE
#undef CALCULATE_ROPE
#undef CALCULATE_ROPE
}
// namespace op::rope::cpu
}
// namespace op::rope::cpu
\ No newline at end of file
src/infiniop/ops/rope/rope.h
View file @
c905fd63
...
@@ -105,8 +105,8 @@ public:
...
@@ -105,8 +105,8 @@ public:
// sin table and cos table must be totally contiguous
// sin table and cos table must be totally contiguous
CHECK_OR_RETURN
(
sin_desc
->
stride
(
1
)
==
1
CHECK_OR_RETURN
(
sin_desc
->
stride
(
1
)
==
1
&&
cos_desc
->
stride
(
1
)
==
1
&&
cos_desc
->
stride
(
1
)
==
1
&&
sin_desc
->
stride
(
0
)
==
table_dim
&&
sin_desc
->
stride
(
0
)
==
ptrdiff_t
(
table_dim
)
&&
cos_desc
->
stride
(
0
)
==
table_dim
,
&&
cos_desc
->
stride
(
0
)
==
ptrdiff_t
(
table_dim
)
,
INFINI_STATUS_BAD_TENSOR_STRIDES
);
INFINI_STATUS_BAD_TENSOR_STRIDES
);
return
utils
::
Result
<
RoPEInfo
>
(
RoPEInfo
{
return
utils
::
Result
<
RoPEInfo
>
(
RoPEInfo
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment