pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

Mesh extend should broadcast rather than duplicate

Open justanhduc opened this issue 3 years ago • 2 comments

🚀 Feature

It is desirable for mesh extend to broadcast rather than duplicate the meshes.

Motivation

This can save a lot of memory and unnecessary duplication.

justanhduc avatar Jul 01 '22 09:07 justanhduc

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Aug 01 '22 05:08 github-actions[bot]

This isn't possible in general in the current design, because we always have one batch dimension. It could only work when the mesh has one batch element. For creating a Meshes with one mesh repeated, the user is free to supply broadcasted tensors, which will get some of the benefit this feature would bring.

bottler avatar Aug 01 '22 11:08 bottler