I hereby claim:
- I am subhankar94 on github.
- I am subhankar (https://keybase.io/subhankar) on keybase.
- I have a public key ASDOfIwXn2HsjckIiGAkK4hClcUXC6uosVn9C9gK0uLiZwo
To claim this, I am signing this object:
# usage: python restore_checkpoint.py model.ckpt-1000 | |
import sys | |
import tensorflow as tf | |
ckpt = sys.argv[1] | |
# soft placement in case using a different system setup | |
config = tf.ConfigProto(allow_soft_placement=True) | |
with tf.Session(config=config) as sess: | |
new_saver = tf.train.import_meta_graph(ckpt + '.meta') | |
new_saver.restore(sess, ckpt) |
tr -cs A-Za-z '\n' | # transliterate non-alphabetic chars (-c) to newline ('\n'), squeeze identical adjacent to single instance (-s) | |
tr A-Z a-z | # transliterate upper case characters to lower case | |
sort | # sort alphabetically | |
uniq -c | # collapse identical adjacent lines and add occurence of each line (-c) | |
sort -rn | # sort in reverse (-r), based on numeric value (-n) | |
sed ${1}q # pass through stream editor, print first-arg-many words and then quit (q) |
I hereby claim:
To claim this, I am signing this object: