You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/Documents/MONAI/my_test_1.py", line 9, in <module>
print(data[mask].shape)
File "/Users/Documents/MONAI/monai/data/meta_tensor.py", line 297, in __torch_function__
ret = MetaTensor.update_meta(ret, func, args, kwargs)
File "/Users/Documents/MONAI/monai/data/meta_tensor.py", line 237, in update_meta
ret_meta = decollate_batch(args[0], detach=False)[batch_idx]
TypeError: only integer tensors of a single element can be converted to an index
Activity
6777 fixes boolean indexing of batched metatensor (#6781)