Guest User

Untitled

a guest
Apr 26th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import argparse
  2. import tensorflow as tf
  3.  
  4. args = argparse.ArgumentParser()
  5. args.add_argument("--dev_sample_percentage", type=float, default=.1)
  6. args.add_argument("--batch_size", type=int, default=64)
  7.  
  8. config, unparsed = args.parse_known_args()
  9.  
  10. ...
  11.  
  12. with tf.Graph().as_default():
  13. session_conf = tf.ConfigProto(
  14. allow_soft_placement=config.allow_soft_placement,
  15. log_device_placement=config.log_device_placement)
Add Comment
Please, Sign In to add comment