Solved by Nathan_Drake in post #2 
              
              
                import numpy as np 
import pandas as pd 
… 
weights = weights.detach().numpy() 
pd.DataFrame(weights).to_csv( ’ weights.csv ’ )