Advertisement
yurystanev

4nna3 tensorflow

Oct 16th, 2019
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.91 KB | None | 0 0
  1. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  2.   _np_qint8 = np.dtype([("qint8", np.int8, 1)])
  3. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  4.   _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
  5. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  6.   _np_qint16 = np.dtype([("qint16", np.int16, 1)])
  7. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  8.   _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
  9. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  10.   _np_qint32 = np.dtype([("qint32", np.int32, 1)])
  11. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  12.   np_resource = np.dtype([("resource", np.ubyte, 1)])
  13. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  14.   _np_qint8 = np.dtype([("qint8", np.int8, 1)])
  15. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  16.   _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
  17. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  18.   _np_qint16 = np.dtype([("qint16", np.int16, 1)])
  19. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  20.   _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
  21. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  22.   _np_qint32 = np.dtype([("qint32", np.int32, 1)])
  23. /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  24.   np_resource = np.dtype([("resource", np.ubyte, 1)])
  25. WARNING:tensorflow:From 07.10.19 tensorflow.py:28: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.
  26.  
  27. WARNING:tensorflow:From 07.10.19 tensorflow.py:35: The name tf.random_normal is deprecated. Please use tf.random.normal instead.
  28.  
  29. WARNING:tensorflow:From 07.10.19 tensorflow.py:62: The name tf.train.GradientDescentOptimizer is deprecated. Please use tf.compat.v1.train.GradientDescentOptimizer instead.
  30.  
  31. WARNING:tensorflow:From /home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/ops/math_grad.py:1205: add_dispatch_support.<locals>.wrapper (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
  32. Instructions for updating:
  33. Use tf.where in 2.0, which has the same broadcast rule as np.where
  34. WARNING:tensorflow:From 07.10.19 tensorflow.py:65: The name tf.global_variables_initializer is deprecated. Please use tf.compat.v1.global_variables_initializer instead.
  35.  
  36. WARNING:tensorflow:From 07.10.19 tensorflow.py:73: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
  37.  
  38. Traceback (most recent call last):
  39.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1356, in _do_call
  40.     return fn(*args)
  41.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1341, in _run_fn
  42.     options, feed_dict, fetch_list, target_list, run_metadata)
  43.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1429, in _call_tf_sessionrun
  44.     run_metadata)
  45. tensorflow.python.framework.errors_impl.InvalidArgumentError: In[0] mismatch In[1] shape: 3 vs. 2: [2000,3] [2,2] 0 0
  46.          [[{{node MatMul}}]]
  47.  
  48. During handling of the above exception, another exception occurred:
  49.  
  50. Traceback (most recent call last):
  51.   File "07.10.19 tensorflow.py", line 80, in <module>
  52.     sess.run(optimizer, feed_dict={data_holder: X, label_holder: Xc})
  53.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 950, in run
  54.     run_metadata_ptr)
  55.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1173, in _run
  56.     feed_dict_tensor, options, run_metadata)
  57.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1350, in _do_run
  58.     run_metadata)
  59.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1370, in _do_call
  60.     raise type(e)(node_def, op, message)
  61. tensorflow.python.framework.errors_impl.InvalidArgumentError: In[0] mismatch In[1] shape: 3 vs. 2: [2000,3] [2,2] 0 0
  62.          [[node MatMul (defined at 07.10.19 tensorflow.py:47) ]]
  63.  
  64. Errors may have originated from an input operation.
  65. Input Source operations connected to node MatMul:
  66.  Variable/read (defined at 07.10.19 tensorflow.py:35)
  67.  Placeholder (defined at 07.10.19 tensorflow.py:28)
  68.  
  69. Original stack trace for 'MatMul':
  70.   File "07.10.19 tensorflow.py", line 47, in <module>
  71.     layer_1 = tf.add(tf.matmul(data_holder, w0), b0)
  72.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/util/dispatch.py", line 180, in wrapper
  73.     return target(*args, **kwargs)
  74.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/ops/math_ops.py", line 2609, in matmul
  75.     return batch_mat_mul_fn(a, b, adj_x=adjoint_a, adj_y=adjoint_b, name=name)
  76.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/ops/gen_math_ops.py", line 1677, in batch_mat_mul_v2
  77.     "BatchMatMulV2", x=x, y=y, adj_x=adj_x, adj_y=adj_y, name=name)
  78.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper
  79.     op_def=op_def)
  80.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
  81.     return func(*args, **kwargs)
  82.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3616, in create_op
  83.     op_def=op_def)
  84.   File "/home/yury.stanev/4NN3-Neural-Networks-and-Deep-Learning/4nn3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2005, in __init__
  85.     self._traceback = tf_stack.extract_stack()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement