KERAS network Learner

I am getting the following Error while executing KNIME nework Learner, please help
Execute failed: An error occurred while creating the Keras network from its layer specifications. Details: Tensors are unhashable (this tensor: KerasTensor(type_spec=TensorSpec(shape=(1, 28, 28, 1), dtype=tf.float32, name=‘input_1’), name=‘input_1’, description=“created by layer ‘input_1’”)). Instead, use tensor.ref() as the key. Traceback (most recent call last): File “”, line 5, in File “/Applications/KNIME 5.1.0.app/Contents/Eclipse/plugins/org.knime.dl.python_5.2.0.v202310301554/py/DLPythonNetworkSpecToDataFrameConverter.py”, line 92, in get_layer_data_specs_as_data_frames extractor = DLPythonNetworkSpecToDataFrameConverter(network.spec) File “/Applications/KNIME 5.1.0.app/Contents/Eclipse/plugins/org.knime.dl.keras_5.2.0.v202310301554/py/DLKerasNetwork.py”, line 150, in spec self._spec = self._extract_model_spec() File “/Applications/KNIME 5.1.0.app/Contents/Eclipse/plugins/org.knime.dl.keras_5.2.0.v202310301554/py/DLKerasTensorFlowNetwork.py”, line 87, in _extract_model_spec return DLKerasTensorFlowNetworkSpecExtractor(self._model).extract_spec() File “/Applications/KNIME 5.1.0.app/Contents/Eclipse/plugins/org.knime.dl.keras_5.2.0.v202310301554/py/DLKerasNetworkSpecExtractor.py”, line 95, in extract_spec self._extract_node_input_tensor_specs(layer, node_idx) File “/Applications/KNIME 5.1.0.app/Contents/Eclipse/plugins/org.knime.dl.keras_5.2.0.v202310301554/py/DLKerasNetworkSpecExtractor.py”, line 149, in _extract_node_input_tensor_specs if input_tensor in self._model_inputs and input_tensor not in self._visited_inputs: File “/opt/anaconda3/envs/py3_knime_en/lib/python3.9/site-packages/keras/engine/keras_tensor.py”, line 242, in hash raise TypeError(f’Tensors are unhashable (this tensor: {self}). ’ TypeError: Tensors are unhashable (this tensor: KerasTensor(type_spec=TensorSpec(shape=(1, 28, 28, 1), dtype=tf.float32, name=‘input_1’), name=‘input_1’, description=“created by layer ‘input_1’”)). Instead, use tensor.ref() as the key.

@mbejawar welcome to the KNIME forum. You will have to install a specific combination of versions for deep learning packages.

2 Likes