Skip to content

TypeSpec error while DRMM model build #851

@govind17

Description

@govind17

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions