Getting Started
Bring Your Own
Extending PyKEEN
Reference
pykeen.nn
Appendix
Bases: torch.nn.modules.module.Module
torch.nn.modules.module.Module
Base class for edge weightings.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
Methods Summary
forward(source, target)
forward
Compute edge weights.
Methods Documentation
source (LongTensor) – shape: (num_edges,) The source indices.
LongTensor
target (LongTensor) – shape: (num_edges,) The target indices.
FloatTensor
shape: (num_edges,) The edge weights.