Nikhila Ravi 956d3a010c Support for moving the renderer to a new device
Summary:
Support for moving all the tensors of the renderer to another device by calling `renderer.to(new_device)`

Currently the `MeshRenderer`, `MeshRasterizer` and `SoftPhongShader` (and other shaders) are all of type `nn.Module` which already supports easily moving tensors of submodules (defined as class attributes) to a different device. However the class attributes of the rasterizer and shader (e.g. cameras, lights, materials), are of type `TensorProperties`, not nn.Module so we need to explicity create a `to` method to move these tensors to device. Note that the `TensorProperties` class already has a `to` method so we only need to call `cameras.to(device)` and don't need to worry about the internal tensors.

The other option is of course making these other classes (cameras, lights etc) also of type nn.Module.

Reviewed By: gkioxari

Differential Revision: D23885107

fbshipit-source-id: d71565c442181f739de4d797076ed5d00fb67f8e
2020-09-23 17:13:07 -07:00
..
2020-01-23 11:53:46 -08:00
2020-08-20 22:22:06 -07:00
2020-04-24 09:11:04 -07:00
2020-04-14 17:22:56 -07:00
2020-04-17 07:44:16 -07:00
2020-04-11 00:21:24 -07:00
2020-04-17 07:44:16 -07:00
2020-04-16 14:02:16 -07:00
2020-08-17 11:59:53 -07:00
2020-04-20 12:19:45 -07:00
2020-09-03 13:27:14 -07:00
2020-09-10 12:53:08 -07:00
2020-05-04 09:56:44 -07:00
2020-04-17 07:44:16 -07:00
2020-04-24 09:11:04 -07:00
2020-05-05 11:09:45 -07:00
2020-04-24 09:11:04 -07:00
2020-08-07 01:59:58 -07:00
2020-07-29 05:01:07 -07:00
2020-05-04 09:56:44 -07:00
2020-04-06 06:41:00 -07:00
2020-04-24 09:11:04 -07:00
2020-09-21 05:16:31 -07:00
2020-05-04 09:56:44 -07:00
2020-05-04 09:56:44 -07:00
2020-08-20 22:22:06 -07:00
2020-05-04 09:56:44 -07:00
2020-01-23 11:53:46 -08:00