Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. config = tf.ConfigProto()
  2. config.gpu_options.allow_growth = True
  3. set_session(tf.Session(config=config))
  4. ...
  5. IR2 = InceptionResNetV2(weights='imagenet', include_top=False)
  6. ...
  7. features = IR2.predict_on_batch(np.array([test_image]))
  8. #test_image only contains one image
  9.  
  10. E tensorflow/stream_executor/cuda/cuda_driver.cc:806] failed to allocate 3.53G (3794432768 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory
  11.  
  12. W tensorflow/core/common_runtime/bfc_allocator.cc:211] Allocator (GPU_0_bfc) ran out of memory trying to allocate 3.39GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available.
  13.  
  14. W tensorflow/core/common_runtime/bfc_allocator.cc:211] Allocator (GPU_0_bfc) ran out of memory trying to allocate 3.39GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement