xnn.gnn.fast.tensornet_kernels.embedding#
- xnn.gnn.fast.tensornet_kernels.embedding(left, right, cut, d1, d2, d3, u, src, dst)[source]#
The fused pair sums of the tensor embedding.
- Parameters:
left (Tensor) – The pair embedding’s terms of the center and of the neighbor,
(N, F)each (the bias inleft).right (Tensor) – The pair embedding’s terms of the center and of the neighbor,
(N, F)each (the bias inleft).cut (Tensor) – The cosine cutoff of every pair
(P,).d1 (Tensor) – The three radial projections,
(P, F)each.d2 (Tensor) – The three radial projections,
(P, F)each.d3 (Tensor) – The three radial projections,
(P, F)each.u (Tensor) – Unit vectors of the pairs (zero for a self pair),
(P, 3).src (Tensor) – Neighbor and center of every pair
(P,).dst (Tensor) – Neighbor and center of every pair
(P,).
- Returns:
The ten rows (scalar, vector, the six distinct entries of the outer-product sum, its trace not removed),
(N, 10, F).- Return type:
Tensor