I passed all the tests for the Art_Generation_with_Neural_Style_Transfer lab, and submitted for full credit. I already finished the certificate, but when I downloaded the files to run my own art, I can’t get it to run anymore. I’ve searched stack overflow but can’t find anything that can help me solve the issue. I would greatly appreciate any help. I get this error:
7 frames
/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/optimizer.py in _var_key(self, variable)
86 # is added to their handle tensors.
87 variable = variable.handle._distributed_container()
—> 88 return variable._unique_id
89
90 def _apply_weight_decay(self, variables):
AttributeError: in user code:
File "<ipython-input-21-5eba9767e718>", line 30, in train_step *
optimizer.apply_gradients([(grad, generated_image)])
File "/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/base_optimizer.py", line 282, in apply_gradients **
self.apply(grads, trainable_variables)
File "/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/base_optimizer.py", line 321, in apply
self.build(trainable_variables)
File "/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/adam.py", line 92, in build
super().build(var_list)
File "/usr/local/lib/python3.10/dist-packages/keras/src/utils/tracking.py", line 26, in wrapper
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/base_optimizer.py", line 152, in build
self._trainable_variables_indices[self._var_key(variable)] = i
File "/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/optimizer.py", line 88, in _var_key
return variable._unique_id
AttributeError: 'SymbolicTensor' object has no attribute '_unique_id'