torch_utils
Generally useful modules for pytorch.
View
Bases: Module
Wrapper of torch's view method to use with nn.Sequential.
Source code in sdfest/vae/torch_utils.py
5 6 7 8 9 10 11 12 13 14 15 |
|
__init__(*shape)
Construct the module.
Source code in sdfest/vae/torch_utils.py
8 9 10 11 |
|
forward(x)
Reshape the tensor.
Source code in sdfest/vae/torch_utils.py
13 14 15 |
|