lookahead.inject(model)
File "bilstm_crf_model.py", line 44, in inject
slow_updates.append(K.update(q, q + self.alpha * (p - q)))
File "/home/work/.local/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 971, in update
return tf.assign(x, new_x)
File "/home/work/.local/lib/python2.7/site-packages/tensorflow/python/ops/state_ops.py", line 222, in assign
return ref.assign(value, name=name)
AttributeError: 'Tensor' object has no attribute 'assign'
lookahead.inject(model) File "bilstm_crf_model.py", line 44, in inject slow_updates.append(K.update(q, q + self.alpha * (p - q))) File "/home/work/.local/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 971, in update return tf.assign(x, new_x) File "/home/work/.local/lib/python2.7/site-packages/tensorflow/python/ops/state_ops.py", line 222, in assign return ref.assign(value, name=name) AttributeError: 'Tensor' object has no attribute 'assign'