Implements an architecture consisting of a multi-layer CNN followed by an MLP, according to parameters specified in the input config.
More...
|
| __init__ (self, dict config) |
|
torch.Tensor | forward (self, torch.Tensor x) |
| Forward pass through the network.
|
|
None | load_cpp_model (self, str model_path) |
| Loads a model saved in cpp jit format.
|
|
None | load_model (self, str model_path) |
| Loads a model saved in pytorch format.
|
|
None | parse (self, dict config) |
| Parse the configuration for the CNN model.
|
|
Implements an architecture consisting of a multi-layer CNN followed by an MLP, according to parameters specified in the input config.
Definition at line 38 of file cnn.py.