Skip to content

IdentityMessage

IdentityMessage(raw_msg_dim: int, memory_dim: int, time_dim: int)

Bases: Module

The identity message function of TGN: the concatenation of the source and destination memories, the raw message and the time encoding.

Parameters:

Name Type Description Default
raw_msg_dim int

Size of the raw messages

required
memory_dim int

Size of the memory

required
time_dim int

Size of the time encoding

required

Attributes:

Name Type Description
out_channels int

PyG name of out_features_dim.

Source code in mlx_graphs/nn/models/tgn.py
def __init__(self, raw_msg_dim: int, memory_dim: int, time_dim: int):
    super().__init__()
    self.out_features_dim = raw_msg_dim + 2 * memory_dim + time_dim

out_channels property

out_channels: int

PyG name of out_features_dim.

from mlx_graphs.nn.models.tgn import IdentityMessage · mlx_graphs/nn/models/tgn.py