Skip to content

Commit

Permalink
Fix regression introduced in #6444 (#6595)
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabheights authored Jan 19, 2024
1 parent 0cf605f commit ee65b6c
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 @@ -29,6 +29,7 @@
- Support in memory loading of XYZ files
- Fix geometry picker Error when LineSet objects are presented (PR #6499)
- Fix mis-configured application .desktop link for the Open3D viewer when installing to a custom path (PR #6599)
- 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 ee65b6c

Please sign in to comment.