Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Users\Shir\Anaconda3\envs\Ex01-Python\python.exe "C:/Users/Shir/Documents/MSc/Deep Learning/Ex01/Ex01-Python/DeepLearning_Ex02_Q07.py"
- 2020-02-26 19:51:36.376955: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
- Using TensorFlow backend.
- 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.
- 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
- 2020-02-26 19:51:40.990340: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
- 2020-02-26 19:51:40.999474: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: LAPTOP-BR10U631
- 2020-02-26 19:51:40.999908: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: LAPTOP-BR10U631
- 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
- 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.
- 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.
- Instructions for updating:
- If using Keras pass *_constraint arguments to layers.
- 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.
- Traceback (most recent call last):
- File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1365, in _do_call
- return fn(*args)
- File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1350, in _run_fn
- target_list, run_metadata)
- File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1443, in _call_tf_sessionrun
- run_metadata)
- 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)
- [[{{node hidden_1/MatMul/ReadVariableOp}}]]
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:/Users/Shir/Documents/MSc/Deep Learning/Ex01/Ex01-Python/DeepLearning_Ex02_Q07.py", line 260, in <module>
- print(output_of_hidden.eval())
- File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 798, in eval
- return _eval_using_default_session(self, feed_dict, self.graph, session)
- File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 5407, in _eval_using_default_session
- return session.run(tensors, feed_dict)
- File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 956, in run
- run_metadata_ptr)
- File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1180, in _run
- feed_dict_tensor, options, run_metadata)
- File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1359, in _do_run
- run_metadata)
- File "C:\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\client\session.py", line 1384, in _do_call
- raise type(e)(node_def, op, message)
- 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)
- [[node hidden_1/MatMul/ReadVariableOp (defined at \Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py:1748) ]]
- Original stack trace for 'hidden_1/MatMul/ReadVariableOp':
- File "/Users/Shir/Documents/MSc/Deep Learning/Ex01/Ex01-Python/DeepLearning_Ex02_Q07.py", line 257, in <module>
- output_of_hidden = model.get_layer('hidden')(output_of_flatten)
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\keras\engine\base_layer.py", line 854, in __call__
- outputs = call_fn(cast_inputs, *args, **kwargs)
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\keras\layers\core.py", line 1050, in call
- outputs = gen_math_ops.mat_mul(inputs, self.kernel)
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\ops\gen_math_ops.py", line 6136, in mat_mul
- name=name)
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\op_def_library.py", line 528, in _apply_op_helper
- preferred_dtype=default_dtype)
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1297, in internal_convert_to_tensor
- ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
- 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
- return var._dense_var_to_tensor(dtype=dtype, name=name, as_ref=as_ref) # pylint: disable=protected-access
- 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
- return self.value()
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py", line 524, in value
- return self._read_variable_op()
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py", line 608, in _read_variable_op
- self._dtype)
- 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
- "ReadVariableOp", resource=resource, dtype=dtype, name=name)
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\op_def_library.py", line 794, in _apply_op_helper
- op_def=op_def)
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\util\deprecation.py", line 507, in new_func
- return func(*args, **kwargs)
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3357, in create_op
- attrs, op_def, compute_device)
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3426, in _create_op_internal
- op_def=op_def)
- File "\Users\Shir\Anaconda3\envs\Ex01-Python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1748, in __init__
- self._traceback = tf_stack.extract_stack()
- Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement