Traceback (most recent call last):


 "tensorrt_python.py", line 59, in <module>

context = engine.create_execution_context()
AttributeError: 'NoneType' object has no attribute 'create_execution_context'

Traceback (most recent call last):


 "run_classifier.py", line 25, in <module>

import optimization


 "D:\bertpro\bert\optimization.py", line 87, in <module>

class AdamWeightDecayOptimizer(tf.train.Optimizer):
AttributeError: module 'tensorflow_core._api.v2.train' has no attribute 'Optimizer'