Commit c905fd63 authored by PanZezhong's avatar PanZezhong
Browse files

issue/48/fix type convert and format

parent bf4f41b6
...@@ -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
...@@ -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{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment