Add address sanitizer and undefined behavior sanitizer (#951)
This commit is contained in:
@@ -26,8 +26,6 @@ Ort::Value Slice(OrtAllocator *allocator, const Ort::Value *v,
|
||||
assert(dim1_start < dim1_end);
|
||||
assert(dim1_end <= shape[1]);
|
||||
|
||||
const T *src = v->GetTensorData<T>();
|
||||
|
||||
std::array<int64_t, 3> ans_shape{dim0_end - dim0_start, dim1_end - dim1_start,
|
||||
shape[2]};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user