(self, mode="sum")
| 370 | self.neighbor_feat_list.append(warp_feat) |
| 371 | |
| 372 | def fusion(self, mode="sum"): |
| 373 | fused = torch.sum(torch.stack(self.neighbor_feat_list), dim=0) |
| 374 | if mode == "union": |
| 375 | fused[fused>0.] = 1.0 |
| 376 | return fused |
| 377 | |
| 378 | @staticmethod |
| 379 | def agents_to_batch(feats): |
no outgoing calls
no test coverage detected