Add API to retrieve the weights of all datasets.