Ignoring log as init and log are called from different PID

Sample Code Snippet

import wandb

Class LoggingWandB:
def init(self):
self.run = wandb.init()
def log(self):
self.run.log({“accuracy”: 0.8})

Error: wandb: WARNING log ignored (called from pid=61628, init called from pid=61057). See: init | Weights & Biases Documentation

Hi, any help on the above issue ? Best Regards, Vishal

This request was closed and merged into request #59543 “[SDK] Error: Logging from differ…”. since this is a duplicate request.