Hi everyone I’m trying to test the keras network learner module, I followed the guide on how to configure an anaconda environment to install tensorflow, but every time I go to run network training I always get this error:
Tensors are unhashable (this tensor: KerasTensor(type_spec=TensorSpec(shape=(64, 2000, 1), dtype=tf.float32, name=‘input_layer_1’), name=‘input_layer_1’, description=“created by layer ‘input_layer_1’”)). Instead, use tensor.ref() as the key.
Traceback (most recent call last):
File “”, line 5, in
File “/home/User/apps/knime_4.7.2/plugins/org.knime.dl.python_4.7.0.v202211082354/py/DLPythonNetworkSpecToDataFrameConverter.py”, line 92, in get_layer_data_specs_as_data_frames
extractor = DLPythonNetworkSpecToDataFrameConverter(network.spec)
File “/home/User/apps/knime_4.7.2/plugins/org.knime.dl.keras_4.7.0.v202211082354/py/DLKerasNetwork.py”, line 150, in spec
self._spec = self._extract_model_spec()
File “/home/User/apps/knime_4.7.2/plugins/org.knime.dl.keras_4.7.0.v202211082354/py/DLKerasTensorFlowNetwork.py”, line 87, in _extract_model_spec
return DLKerasTensorFlowNetworkSpecExtractor(self._model).extract_spec()
File “/home/User/apps/knime_4.7.2/plugins/org.knime.dl.keras_4.7.0.v202211082354/py/DLKerasNetworkSpecExtractor.py”, line 95, in extract_spec
self._extract_node_input_tensor_specs(layer, node_idx)
File “/home/User/apps/knime_4.7.2/plugins/org.knime.dl.keras_4.7.0.v202211082354/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 “/home/User/anaconda3/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=(64, 2000, 1), dtype=tf.float32, name=‘input_layer_1’), name=‘input_layer_1’, description=“created by layer ‘input_layer_1’”)). Instead, use tensor.ref() as the key
can someone help me ?