model.get_weights() vs model.trainable_variables Tensorflow

Viewed 133

model.get_weights() and model.trainable_variables in Tensorflow seems to be returning same values in different data types. Former returns list of arrays and latter array of tensors. (If I am not mistaken)

Please, explain in which context is better to use each? Also, I was trying to compare them but had no luck, if possible please help with a comparison code.

Thank you.

0 Answers
Related