SHARE
TWEET

Untitled

a guest Jul 15th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Traceback (most recent call last):
  2.   File "/usr/lib64/python3.7/site-packages/flask/app.py", line 2309, in __call__
  3.     return self.wsgi_app(environ, start_response)
  4.   File "/usr/lib64/python3.7/site-packages/flask/app.py", line 2295, in wsgi_app
  5.     response = self.handle_exception(e)
  6.   File "/usr/lib64/python3.7/site-packages/flask_restful/__init__.py", line 269, in error_router
  7.     return original_handler(e)
  8.   File "/usr/lib64/python3.7/site-packages/flask/app.py", line 1741, in handle_exception
  9.     reraise(exc_type, exc_value, tb)
  10.   File "/usr/lib64/python3.7/site-packages/flask/_compat.py", line 35, in reraise
  11.     raise value
  12.   File "/usr/lib64/python3.7/site-packages/flask/app.py", line 2292, in wsgi_app
  13.     response = self.full_dispatch_request()
  14.   File "/usr/lib64/python3.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
  15.     rv = self.handle_user_exception(e)
  16.   File "/usr/lib64/python3.7/site-packages/flask_restful/__init__.py", line 269, in error_router
  17.     return original_handler(e)
  18.   File "/usr/lib64/python3.7/site-packages/flask/app.py", line 1718, in handle_user_exception
  19.     reraise(exc_type, exc_value, tb)
  20.   File "/usr/lib64/python3.7/site-packages/flask/_compat.py", line 35, in reraise
  21.     raise value
  22.   File "/usr/lib64/python3.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
  23.     rv = self.dispatch_request()
  24.   File "/usr/lib64/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request
  25.     return self.view_functions[rule.endpoint](**req.view_args)
  26.   File "/root/contrib/python/Kerasplan/kerasplan/api.py", line 92, in upload_file
  27.     classes = context.model.predict(img)
  28.   File "/usr/lib64/python3.7/site-packages/tensorflow/python/keras/engine/training.py", line 1078, in predict
  29.     callbacks=callbacks)
  30.   File "/usr/lib64/python3.7/site-packages/tensorflow/python/keras/engine/training_arrays.py", line 157, in model_iteration
  31.     f = _make_execution_function(model, mode)
  32.   File "/usr/lib64/python3.7/site-packages/tensorflow/python/keras/engine/training_arrays.py", line 532, in _make_execution_function
  33.     return model._make_execution_function(mode)
  34.   File "/usr/lib64/python3.7/site-packages/tensorflow/python/keras/engine/training.py", line 2282, in _make_execution_function
  35.     self._make_predict_function()
  36.   File "/usr/lib64/python3.7/site-packages/tensorflow/python/keras/engine/training.py", line 2272, in _make_predict_function
  37.     **kwargs)
  38.   File "/usr/lib64/python3.7/site-packages/tensorflow/python/keras/backend.py", line 3479, in function
  39.     return GraphExecutionFunction(inputs, outputs, updates=updates, **kwargs)
  40.   File "/usr/lib64/python3.7/site-packages/tensorflow/python/keras/backend.py", line 3142, in __init__
  41.     with ops.control_dependencies([self.outputs[0]]):
  42.   File "/usr/lib64/python3.7/site-packages/tensorflow/python/framework/ops.py", line 5426, in control_dependencies
  43.     return get_default_graph().control_dependencies(control_inputs)
  44.   File "/usr/lib64/python3.7/site-packages/tensorflow/python/framework/ops.py", line 4867, in control_dependencies
  45.     c = self.as_graph_element(c)
  46.   File "/usr/lib64/python3.7/site-packages/tensorflow/python/framework/ops.py", line 3796, in as_graph_element
  47.     return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
  48.   File "/usr/lib64/python3.7/site-packages/tensorflow/python/framework/ops.py", line 3875, in _as_graph_element_locked
  49.     raise ValueError("Tensor %s is not an element of this graph." % obj)
  50. ValueError: Tensor Tensor("dense_1/Softmax:0", shape=(?, 2), dtype=float32) is not an element of this graph.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top