You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is related to and has the same origin as #113.
Training does not run, I managed to make it run by downgrading the versions of Keras and tensorflow as described in the linked version.
System information
Linux Ubuntu 18.04:
Keras v. 2.2.5
tensorflow v. 1.14.0
Python version: 3.6.8
anago v.1.0.8 (installed with pip install)
Logs
model.fit(x_train, y_train, epochs=30)
File "venv/lib/python3.6/site-packages/anago/wrapper.py", line 80, in fit
model, loss = model.build()
File "/venv/lib/python3.6/site-packages/anago/models.py", line 115, in build
pred = crf(z)
File "venv/lib/python3.6/site-packages/keras/engine/base_layer.py", line 451, in __call__
output = self.call(inputs, **kwargs)
File "venv/lib/python3.6/site-packages/anago/layers.py", line 215, in call
test_output = self.viterbi_decoding(X, mask)
File "venv/lib/python3.6/site-packages/anago/layers.py", line 484, in viterbi_decoding
argmin_tables = self.recursion(input_energy, mask, return_logZ=False)
File "venv/lib/python3.6/site-packages/anago/layers.py", line 445, in recursion
mask2 = K.cast(K.concatenate([mask, K.zeros_like(mask[:, :1])], axis=1), K.floatx())
File "venv/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2176, in concatenate
return tf.concat([to_dense(x) for x in tensors], axis)
File "venv/lib/python3.6/site-packages/tensorflow/python/util/dispatch.py", line 180, in wrapper
return target(*args, **kwargs)
File "venv/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py", line 1299, in concat
return gen_array_ops.concat_v2(values=values, axis=axis, name=name)
File "venv/lib/python3.6/site-packages/tensorflow/python/ops/gen_array_ops.py", line 1256, in concat_v2
"ConcatV2", values=values, axis=axis, name=name)
File "venv/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 499, in _apply_op_helper
raise TypeError("%s that don't all match." % prefix)
TypeError: Tensors in list passed to 'values' of 'ConcatV2' Op have types [bool, float32] that don't all match.
The text was updated successfully, but these errors were encountered:
@nipunsadvilkar , i managed to run the tool by downgrading the versions of keras, tensorflow and seqeval. I mentioned this in my post. The reason for filing the issue is to make the developer(s) aware of incompatibility with higher versions of said libraries.
Hi,
This issue is related to and has the same origin as #113.
Training does not run, I managed to make it run by downgrading the versions of Keras and tensorflow as described in the linked version.
System information
Logs
The text was updated successfully, but these errors were encountered: