Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1xN tensors are not visualizable #5839

Closed
egorchakov opened this issue Apr 8, 2024 · 1 comment · Fixed by #5837
Closed

1xN tensors are not visualizable #5839

egorchakov opened this issue Apr 8, 2024 · 1 comment · Fixed by #5837
Labels
🪳 bug Something isn't working 📺 re_viewer affects re_viewer itself
Milestone

Comments

@egorchakov
Copy link

Describe the bug
Logged 1xN tensors don't seem to be visualizable (potentially related to #3709?)

import torch
import rerun as rr

rr.init('tensor-viz', spawn=True, strict=True)
rr.log('1x10', rr.Tensor(torch.zeros(1, 10))

Screenshots

image

Rerun version

rerun_py 0.15.0-rc.1 [rustc 1.74.0 (79e9716c9 2023-11-13), LLVM 17.0.4] x86_64-unknown-linux-gnu release-0.15.0-rc.1 3c298fd, built 2024-04-02T21:34:01Z

Additional context

A workaround I stumbled upon is first logging a 2xN tensor to the same entity path and then overwriting it with the original 1xN tensor, which makes the 1xN tensor show up in the viewer:

rr.log('1x10', rr.Tensor(torch.zeros(2, 10)) # dummy 2xN
rr.log('1x10', rr.Tensor(torch.zeros(1, 10)) # original
@egorchakov egorchakov added 👀 needs triage This issue needs to be triaged by the Rerun team 🪳 bug Something isn't working labels Apr 8, 2024
@abey79
Copy link
Member

abey79 commented Apr 8, 2024

Thanks for the report. I could reproduced both the issue and the workaround on main.

@abey79 abey79 added 📺 re_viewer affects re_viewer itself and removed 👀 needs triage This issue needs to be triaged by the Rerun team labels Apr 8, 2024
@Wumpf Wumpf linked a pull request Apr 8, 2024 that will close this issue
5 tasks
@abey79 abey79 added this to the 0.15 milestone Apr 8, 2024
@Wumpf Wumpf closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 📺 re_viewer affects re_viewer itself
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants