Why metric inherits torch.nn.Module? 
If i define a complex metric and the computation may convert torch.tensor to numpy. Can this metric use in ddp？
If i want train model with train_dataloader in ddp and validate val_dataloader in single model with customized metric, how to do it?