Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.62 KB | None | 0 0
  1. C:\Users\Shir\Anaconda3\envs\Ex01-Python\python.exe "C:/Users/Shir/Documents/MSc/Deep Learning/Ex01/Ex01-Python/DeepLearning_Ex02_Q07.py"
  2. 2020-02-26 19:51:36.376955: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
  3. Using TensorFlow backend.
  4. WARNING:tensorflow:From C:/Users/Shir/Documents/MSc/Deep Learning/Ex01/Ex01-Python/DeepLearning_Ex02_Q07.py:27: The name tf.keras.backend.get_session is deprecated. Please use tf.compat.v1.keras.backend.get_session instead.
  5.  
  6. 2020-02-26 19:51:40.989991: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
  7. 2020-02-26 19:51:40.990340: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
  8. 2020-02-26 19:51:40.999474: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: LAPTOP-BR10U631
  9. 2020-02-26 19:51:40.999908: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: LAPTOP-BR10U631
  10. 2020-02-26 19:51:41.002414: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
  11. WARNING:tensorflow:From C:/Users/Shir/Documents/MSc/Deep Learning/Ex01/Ex01-Python/DeepLearning_Ex02_Q07.py:28: The name tf.global_variables_initializer is deprecated. Please use tf.compat.v1.global_variables_initializer instead.
  12.  
  13. WARNING:tensorflow:From C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py:1630: calling BaseResourceVariable.__init__ (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
  14. Instructions for updating:
  15. If using Keras pass *_constraint arguments to layers.
  16. WARNING:tensorflow:From C:/Users/Shir/Documents/MSc/Deep Learning/Ex01/Ex01-Python/DeepLearning_Ex02_Q07.py:259: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
  17.  
  18. Traceback (most recent call last):
  19. File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1365, in _do_call
  20. return fn(*args)
  21. File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1350, in _run_fn
  22. target_list, run_metadata)
  23. File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1443, in _call_tf_sessionrun
  24. run_metadata)
  25. tensorflow.python.framework.errors_impl.FailedPreconditionError: Error while reading resource variable hidden/kernel from Container: localhost. This could mean that the variable was uninitialized. Not found: Container localhost does not exist. (Could not find resource: localhost/hidden/kernel)
  26. [[{{node hidden_1/MatMul/ReadVariableOp}}]]
  27.  
  28. During handling of the above exception, another exception occurred:
  29.  
  30. Traceback (most recent call last):
  31. File "C:/Users/Shir/Documents/MSc/Deep Learning/Ex01/Ex01-Python/DeepLearning_Ex02_Q07.py", line 260, in <module>
  32. print(output_of_hidden.eval())
  33. File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 798, in eval
  34. return _eval_using_default_session(self, feed_dict, self.graph, session)
  35. File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 5407, in _eval_using_default_session
  36. return session.run(tensors, feed_dict)
  37. File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 956, in run
  38. run_metadata_ptr)
  39. File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1180, in _run
  40. feed_dict_tensor, options, run_metadata)
  41. File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1359, in _do_run
  42. run_metadata)
  43. File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1384, in _do_call
  44. raise type(e)(node_def, op, message)
  45. tensorflow.python.framework.errors_impl.FailedPreconditionError: Error while reading resource variable hidden/kernel from Container: localhost. This could mean that the variable was uninitialized. Not found: Container localhost does not exist. (Could not find resource: localhost/hidden/kernel)
  46. [[node hidden_1/MatMul/ReadVariableOp (defined at \Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py:1748) ]]
  47.  
  48. Original stack trace for 'hidden_1/MatMul/ReadVariableOp':
  49. File "/Users/Shir/Documents/MSc/Deep Learning/Ex01/Ex01-Python/DeepLearning_Ex02_Q07.py", line 257, in <module>
  50. output_of_hidden = model.get_layer('hidden')(output_of_flatten)
  51. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\keras\engine\base_layer.py", line 854, in __call__
  52. outputs = call_fn(cast_inputs, *args, **kwargs)
  53. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\keras\layers\core.py", line 1050, in call
  54. outputs = gen_math_ops.mat_mul(inputs, self.kernel)
  55. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\ops\gen_math_ops.py", line 6136, in mat_mul
  56. name=name)
  57. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\op_def_library.py", line 528, in _apply_op_helper
  58. preferred_dtype=default_dtype)
  59. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1297, in internal_convert_to_tensor
  60. ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
  61. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py", line 1789, in _dense_var_to_tensor
  62. return var._dense_var_to_tensor(dtype=dtype, name=name, as_ref=as_ref) # pylint: disable=protected-access
  63. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py", line 1214, in _dense_var_to_tensor
  64. return self.value()
  65. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py", line 524, in value
  66. return self._read_variable_op()
  67. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py", line 608, in _read_variable_op
  68. self._dtype)
  69. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\ops\gen_resource_variable_ops.py", line 587, in read_variable_op
  70. "ReadVariableOp", resource=resource, dtype=dtype, name=name)
  71. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\op_def_library.py", line 794, in _apply_op_helper
  72. op_def=op_def)
  73. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\util\deprecation.py", line 507, in new_func
  74. return func(*args, **kwargs)
  75. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3357, in create_op
  76. attrs, op_def, compute_device)
  77. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3426, in _create_op_internal
  78. op_def=op_def)
  79. File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1748, in __init__
  80. self._traceback = tf_stack.extract_stack()
  81.  
  82.  
  83. Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement