You won’t be able to access edges_logits or nodes_logits from Trainer.tnr as they are not attributes but local variables.
Maybe return these tensors and call the Trainer class from MolecularMetrics.
To avoid circular imports, check e.g this post 2.