sketchgraphs_models.graph.model.message_passing.GraphModelCore¶
-
class
sketchgraphs_models.graph.model.message_passing.
GraphModelCore
(message_passing, node_embedding, edge_embedding, graph_embedding)¶ Component of the entity model used to compute global features, i.e. graph and node embeddings.
This component is responsible for the computation that is independent of any specific target (edge / node). It is split off to ease sharing with sampling models.
-
__init__
(message_passing, node_embedding, edge_embedding, graph_embedding)¶ Initializes internal Module state, shared by both nn.Module and ScriptModule.
-
forward
(data)¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-