Hi @ptrblck. Thanks for the reply but I want to do the opposite of what you are thinking. I want to import from the trainer.py and use edge_logits and nodes_logits in the utils.py as highlighted under the reconstruction_scores function in the utils image. How do I go about it without incurring circular import errors.
I have already tried importing Trainer class in the utils.py by from trainer import Trainer and using Trainer.tnr.nodes_logits and Trainer.tnr.edges_logits in the reconstruction_scores function, but I get circular import error since I have also imported utils.py in the trainer.py.
ImportError: cannot import name 'Trainer' from 'trainer'