Coverage Control Library
Loading...
Searching...
No Matches
LPAC Class Reference

LPAC neural network architecture. More...

+ Inheritance diagram for LPAC:

Public Member Functions

 __init__ (self, in_config)
 
torch.Tensor forward (self, torch_geometric.data.Data data)
 Forward pass of the LPAC model.
 
None load_model (self, str model_state_dict_path)
 Load the model from the state dict.
 
None load_cnn_backbone (self, str model_path)
 Load the CNN backbone from the model path.
 
None load_gnn_backbone (self, str model_path)
 Load the GNN backbone from the model path.
 
- Public Member Functions inherited from GNNConfigParser
None parse (self, dict config)
 Parse the configuration for the GNN model.
 

Public Attributes

 cnn_config
 
 cnn_backbone
 
 gnn_backbone
 
 gnn_mlp
 
 output_linear
 
 output_dim
 
- Public Attributes inherited from GNNConfigParser
 config
 
 input_dim
 
 output_dim
 
 num_hops
 
 num_layers
 
 latent_size
 

Detailed Description

LPAC neural network architecture.

Definition at line 40 of file lpac.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
in_config )

Reimplemented from GNNConfigParser.

Definition at line 41 of file lpac.py.

Member Function Documentation

◆ forward()

torch.Tensor forward ( self,
torch_geometric.data.Data data )

Forward pass of the LPAC model.

Definition at line 59 of file lpac.py.

◆ load_cnn_backbone()

None load_cnn_backbone ( self,
str model_path )

Load the CNN backbone from the model path.

Definition at line 92 of file lpac.py.

◆ load_gnn_backbone()

None load_gnn_backbone ( self,
str model_path )

Load the GNN backbone from the model path.

Definition at line 98 of file lpac.py.

◆ load_model()

None load_model ( self,
str model_state_dict_path )

Load the model from the state dict.

Definition at line 86 of file lpac.py.

Member Data Documentation

◆ cnn_backbone

cnn_backbone

Definition at line 45 of file lpac.py.

◆ cnn_config

cnn_config

Definition at line 43 of file lpac.py.

◆ gnn_backbone

gnn_backbone

Definition at line 46 of file lpac.py.

◆ gnn_mlp

gnn_mlp

Definition at line 50 of file lpac.py.

◆ output_dim

output_dim

Definition at line 53 of file lpac.py.

◆ output_linear

output_linear

Definition at line 51 of file lpac.py.