2019-03-18 13:01:02.751065: F tensorflow/core/framework/op.cc:55] Non-OK-status: RegisterAlreadyLocked(op_data_factory) status: Already exists: Op with name _ScopedAllocator

the above error shows up whenever I import tensorrt from tensorflow with the following import statement.

from tensorflow.contrib import tensorrt as tftrt

Environment was:

  • tensorflow-gpu 1.9.0
  • python 3.6.6
  • ubuntu 16.04
  • CUDA 9.0


upgraded to tensorflow 1.10.0. the problem disappeared immediately.

This solution was referred in this thread.


Leave a Reply

Your email address will not be published.