Guest User

Untitled

a guest
Mar 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped)
  2.  
  3. os.environ[CUDA_VISIBLE_DEIVCES] = '0'
  4.  
  5. config = tf.ConfigProto()
  6. config.gpu_options.allow_growth = True
  7. config.allow_soft_placement = True
  8.  
  9. sess = tf.Session(config=config)
Add Comment
Please, Sign In to add comment