add weights to Embedding and Metric