ERROR:tensorflow:================================== Object was never
used (type ):
If you want
to mark it as used call its"mark_used()" method. It was originally
created here: File"/usr/lib/python3.6/runpy.py", line 193, in
_run_module_as_main
"main", mod_spec)
...
(long message removed fro brevity)
...
--------------------------------------------------------------------------- AttributeError Traceback (most recent call
last) in ()
14 #model.summary()
15 img = next(train_generator)[0][0]
---> 16 pconv_predict = model.predict(img)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py
in predict(self, x, batch_size, verbose, steps, max_queue_size,
workers, use_multiprocessing) 1876 else: 1877 return
training_arrays.predict_loop(
-> 1878 self, x, batch_size=batch_size, verbose=verbose, steps=steps) 1879 1880 def train_on_batch(self, x, y=None,
sample_weight=None, class_weight=None):
...
(long message removed fro brevity)
...
/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/variables.py
in is_variable_initialized(variable) 2897 initialized, False
otherwise. 2898 """
-> 2899 return state_ops.is_variable_initialized(variable) 2900 2901
/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/state_ops.py
in is_variable_initialized(ref, name)
129 return gen_state_ops.is_variable_initialized(ref=ref, name=name)
130 # Handle resource variables.
--> 131 return ref.is_initialized(name=name)
132
133
AttributeError: 'Tensor' object has no attribute 'is_initialized'