Skip to content

Commit

Permalink
Fix regression introduced in isl-org#6444
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabheights committed Jan 11, 2024
1 parent 0f06a14 commit bd1de76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- Rename master branch to main.
- Support in memory loading of XYZ files
- Fix geometry picker Error when LineSet objects are presented (PR #6499)
- Fix regression in printing cuda tensor from PR #6444 🐛

## 0.13

Expand Down
2 changes: 1 addition & 1 deletion cpp/open3d/core/Tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ std::string Tensor::ToString(bool with_suffix,
std::ostringstream rc;
if (IsCUDA() || !IsContiguous()) {
Tensor host_contiguous_tensor = Contiguous().To(Device("CPU:0"));
rc << host_contiguous_tensor.ToString(with_suffix, indent);
rc << host_contiguous_tensor.ToString(false, indent);
} else {
if (shape_.NumElements() == 0) {
rc << indent;
Expand Down

0 comments on commit bd1de76

Please sign in to comment.