'how to create weight dataset in Tnsorflow Federated Learning?

I want to create a weight dataset of the CNN model and using this dataset train an Autoencoder to compress the size of weight updates in a Federated Learning environment, how do get the weights of the model and create a dataset?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source