Emilien Garreau 9446d91fae Avoid to keep in memory lengths and bins for ImplicitronRayBundle
Summary:
Convert ImplicitronRayBundle to a "classic" class instead of a dataclass. This change is introduced as a way to preserve the ImplicitronRayBundle interface while allowing two outcomes:
- init lengths arguments is now a Optional[torch.Tensor] instead of torch.Tensor
- lengths is now a property which returns a `torch.Tensor`. The lengths property will either recompute lengths from bins or return the stored _lengths. `_lenghts` is None if bins is set. It saves us a bit of memory.

Reviewed By: shapovalov

Differential Revision: D46686094

fbshipit-source-id: 3c75c0947216476ebff542b6f552d311024a679b
2023-07-06 02:41:15 -07:00
..
2022-03-21 13:20:10 -07:00
2023-05-19 06:41:33 -07:00
2023-06-16 04:49:02 -07:00
2023-04-25 09:56:15 -07:00
2022-05-25 06:16:03 -07:00
2022-06-10 12:22:46 -07:00
2023-01-24 15:26:52 -08:00
2022-10-03 08:36:47 -07:00
2022-06-28 16:11:49 -07:00
2022-05-12 12:50:03 -07:00