Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config = tf.ConfigProto()
- config.gpu_options.allow_growth = True
- set_session(tf.Session(config=config))
- ...
- IR2 = InceptionResNetV2(weights='imagenet', include_top=False)
- ...
- features = IR2.predict_on_batch(np.array([test_image]))
- #test_image only contains one image
- 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
- 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.
- 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