Created
March 16, 2020 06:24
-
-
Save sushantjha8/8b961ffb49cb7bec2e7ced727af74e02 to your computer and use it in GitHub Desktop.
Revisions
-
sushantjha8 created this gist
Mar 16, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ { "embeddings": [ { "tensorName": "My tensor", "tensorShape": [ 1000, 50 ], "tensorPath": "https://raw.githubusercontent.com/.../tensors.tsv", "metadataPath": "https://raw.githubusercontent.com/.../optional.metadata.tsv" } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ weights = embedding_layer.get_weights()[0] print(weights) import numpy as np np.savetxt('weight.tsv' , weights , fmt='%s', delimiter='\t ')