Skip to content

Commit 42da428

Browse files
committed
Merge branch 'eddy/add_corelib' of github.com:WATonomous/deep_ros into eddy/add_corelib
2 parents f42b994 + 744daef commit 42da428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deep_core/src/tensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Tensor::Tensor(const Tensor & other)
119119
if (is_owner_) {
120120
allocate_memory();
121121
if (other.data_ && data_) {
122-
if (allocator_ && other.allocator_ && allocator_ == other.allocator_) {
122+
if (allocator_ && other.allocator_) {
123123
allocator_->copy_device_to_device(data_, other.data_, byte_size_);
124124
} else {
125125
allocator_->copy_from_host(data_, other.data_, byte_size_);

0 commit comments

Comments
 (0)