Use deep copy in Clone() (#66)

This commit is contained in:
Fangjun Kuang
2023-02-26 14:54:01 +08:00
committed by GitHub
parent 475caf22f9
commit 5a8c3a6d10
7 changed files with 41 additions and 24 deletions

View File

@@ -37,7 +37,7 @@ template <typename T /*=float*/>
Ort::Value Cat(OrtAllocator *allocator,
const std::vector<const Ort::Value *> &values, int32_t dim) {
if (values.size() == 1u) {
return Clone(values[0]);
return Clone(allocator, values[0]);
}
std::vector<int64_t> v0_shape =