I am new to pytorch and I am having the same error posted here as you can see below:
File "/home/.../CenterFusion/src/lib/utils/pointcloud.py", line 282, in pc_dep_to_hm_torch
    bbox_int = torch.tensor([torch.floor(bbox[0]), 
TypeError: only integer tensors of a single element can be converted to an index

which is thrown by the following piece of code:
 bbox_int = torch.tensor([torch.floor(bbox[0]), 
                         torch.floor(bbox[1]), 
                         torch.ceil(bbox[2]), 
                         torch.ceil(bbox[3])], dtype=torch.int32)# format: xyxy

where:
type bbox:  <class 'torch.Tensor'>
Can anyone please help me? I could not seem to apply the solution @ptrblck provided in his comment to my problem.
Thanks!