MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / load_data_to_gpu

Function load_data_to_gpu

utils/common.py:1195–1200  ·  view source on GitHub ↗
(batch_dict)

Source from the content-addressed store, hash-verified

1193 return range_img, range_mask
1194
1195def load_data_to_gpu(batch_dict):
1196 for key, val in batch_dict.items():
1197 if(isinstance(val, np.ndarray)):
1198 batch_dict[key] = torch.from_numpy(val)
1199 if(isinstance(val, torch.Tensor)):
1200 batch_dict[key] = val.cuda()
1201
1202def save_points(points, colors=None, name="pc.ply"):
1203

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected