Advertisement
nordlaender

Keras CGRU error message

Nov 2nd, 2016
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.49 KB | None | 0 0
  1. Using Theano backend.
  2. Traceback (most recent call last):
  3.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\theano\tensor\type.py", line 267, in dtype_specs
  4.     }[self.dtype]
  5. KeyError: 'object'
  6.  
  7. During handling of the above exception, another exception occurred:
  8.  
  9. Traceback (most recent call last):
  10.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\theano\tensor\basic.py", line 408, in constant_or_value
  11.     TensorType(dtype=x_.dtype, broadcastable=bcastable),
  12.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\theano\tensor\type.py", line 50, in __init__
  13.     self.dtype_specs()  # error checking is done there
  14.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\theano\tensor\type.py", line 270, in dtype_specs
  15.     % (self.__class__.__name__, self.dtype))
  16. TypeError: Unsupported dtype for TensorType: object
  17.  
  18. During handling of the above exception, another exception occurred:
  19.  
  20. Traceback (most recent call last):
  21.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\theano\tensor\basic.py", line 202, in as_tensor_variable
  22.     return constant(x, name=name, ndim=ndim)
  23.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\theano\tensor\basic.py", line 422, in constant
  24.     dtype=dtype)
  25.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\theano\tensor\basic.py", line 417, in constant_or_value
  26.     raise TypeError("Could not convert %s to TensorType" % x, type(x))
  27. TypeError: ('Could not convert [None] to TensorType', <class 'list'>)
  28.  
  29. During handling of the above exception, another exception occurred:
  30.  
  31. Traceback (most recent call last):
  32.   File "C:/Users/xxx/PycharmProjects/LayerTests/sandbox.py", line 87, in <module>
  33.     updown=up(time_dist)
  34.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\keras\engine\topology.py", line 514, in __call__
  35.     self.add_inbound_node(inbound_layers, node_indices, tensor_indices)
  36.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\keras\engine\topology.py", line 572, in add_inbound_node
  37.     Node.create_node(self, inbound_layers, node_indices, tensor_indices)
  38.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\keras\engine\topology.py", line 149, in create_node
  39.     output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0]))
  40.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\keras\layers\recurrent.py", line 215, in call
  41.     input_length=input_shape[1])
  42.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\keras\backend\theano_backend.py", line 885, in rnn
  43.     outputs_info=[None] + initial_states,
  44.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\theano\tensor\var.py", line 234, in __radd__
  45.     return theano.tensor.basic.add(other, self)
  46.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\theano\gof\op.py", line 611, in __call__
  47.     node = self.make_node(*inputs, **kwargs)
  48.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\theano\tensor\elemwise.py", line 543, in make_node
  49.     inputs = list(map(as_tensor_variable, inputs))
  50.   File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\theano\tensor\basic.py", line 208, in as_tensor_variable
  51.     raise AsTensorError("Cannot convert %s to TensorType" % str_x, type(x))
  52. theano.tensor.var.AsTensorError: ('Cannot convert [None] to TensorType', <class 'list'>)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement