MatchZoo icon indicating copy to clipboard operation
MatchZoo copied to clipboard

TypeSpec error while DRMM model build

Open govind17 opened this issue 3 years ago • 0 comments

Hello, I am getting the following error while I am trying to build the DRMM model for my ranking task at this line (here)

TypeError: Could not build a TypeSpec for KerasTensor(type_spec=TensorSpec(shape=(1, None, 10, 1), dtype=tf.float32, name=None), name='tf.operators.add/AddV2:0', description="created by layer 'tf.operators.add'") of unsupported type <class 'keras.engine.keras_tensor.KerasTensor'>.

Please note that I am using the following environment configuration in my local machine

Python 3.8.11 MatchZoo 2.1.0 tensorflow 2.8.0

Describe your attempts

  • I checked the documentation and found no answer
  • I checked to make sure that this is not a duplicate issue
  • Additionally, I also tried different kinds of solution like this here
  • And here

Context

  • OS [macOS 12.4]:
  • Hardware [Metal M1]

Thank-you for your help and time.

Regards, Govind Shukla

govind17 avatar Jul 16 '22 07:07 govind17