The model works fine on TensorFlow 1.15 (newest release), but does not work on Tensorflow 2.0 when trying to call predict. The model is a Keras Model.
model.predict(self.A.todense())
Extracted error message:
/tensorflow-2.0.0/python3.6/tensorflow_core/python/framework/type_spec.py in type_spec_from_value(value)
490 491 raise TypeError("Could not build a TypeSpec for %r with type %s" %--> 492 (value, type(value).name))
493 494TypeError: Could not build a TypeSpec for matrix([[0, 1, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], dtype=int64) with type matrix