"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "4753d6eeddcbef747f3f45fc9bd564ec35c8ffb6"
Commit fe7b2d9f authored by Chao Liu's avatar Chao Liu
Browse files

fix buffer_store

parent f6ab2169
...@@ -108,8 +108,12 @@ struct SetData ...@@ -108,8 +108,12 @@ struct SetData
{ {
const auto zeros = vector_t(0); const auto zeros = vector_t(0);
amd_buffer_store<T, DataPerAccess>( amd_buffer_store<T, DataPerAccess>(src_valid ? &(p_src[src_offset])
src_valid ? &(p_src[src_offset]) : &zeros, p_dst, dst_offset, dst_valid, dst_range); : reinterpret_cast<const T*>(&zeros),
p_dst,
dst_offset,
dst_valid,
dst_range);
} }
#endif #endif
}; };
......
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