"...git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "e5a87f35ad65c2a2c31bf6888293bfef1b963bed"
Commit eafdabba authored by Chao Liu's avatar Chao Liu
Browse files

fix build issue

parent 709f13a6
...@@ -218,11 +218,13 @@ struct BlockwiseGenericTensorSliceCopy_v1 ...@@ -218,11 +218,13 @@ struct BlockwiseGenericTensorSliceCopy_v1
const index_t clipboard_offset = thread_tensor_desc.GetOffsetFromMultiIndex( const index_t clipboard_offset = thread_tensor_desc.GetOffsetFromMultiIndex(
clipboard_data_multi_id_begin); // cannot not constexpr, why? clipboard_data_multi_id_begin); // cannot not constexpr, why?
#else #else
constexpr auto repeat_multi_id = decltype(repeat_multi_id_){};
constexpr auto src_thread_data_multi_id_begin = constexpr auto src_thread_data_multi_id_begin =
repeat_multi_id_ * data_per_cluster_per_dims; repeat_multi_id * data_per_cluster_per_dims;
constexpr auto clipboard_data_multi_id_begin = constexpr auto clipboard_data_multi_id_begin =
repeat_multi_id_ * thread_sub_tensor_lengths; repeat_multi_id * thread_sub_tensor_lengths;
constexpr index_t src_offset = constexpr index_t src_offset =
SrcDesc::GetOffsetFromMultiIndex(src_thread_data_multi_id_begin); SrcDesc::GetOffsetFromMultiIndex(src_thread_data_multi_id_begin);
...@@ -271,10 +273,12 @@ struct BlockwiseGenericTensorSliceCopy_v1 ...@@ -271,10 +273,12 @@ struct BlockwiseGenericTensorSliceCopy_v1
const index_t dst_offset = DstDesc{}.GetOffsetFromMultiIndex( const index_t dst_offset = DstDesc{}.GetOffsetFromMultiIndex(
dst_data_multi_id_begin); // cannot not constexpr, why? dst_data_multi_id_begin); // cannot not constexpr, why?
#else #else
constexpr auto repeat_multi_id = decltype(repeat_multi_id_){};
constexpr auto clipboard_data_multi_id_begin = constexpr auto clipboard_data_multi_id_begin =
repeat_multi_id_ * thread_sub_tensor_lengths; repeat_multi_id * thread_sub_tensor_lengths;
constexpr auto dst_data_multi_id_begin = repeat_multi_id_ * data_per_cluster_per_dims; constexpr auto dst_data_multi_id_begin = repeat_multi_id * data_per_cluster_per_dims;
constexpr index_t clipboard_offset = constexpr index_t clipboard_offset =
thread_tensor_desc.GetOffsetFromMultiIndex(clipboard_data_multi_id_begin); thread_tensor_desc.GetOffsetFromMultiIndex(clipboard_data_multi_id_begin);
......
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