I looked for all the \"\'Tensor\' object has no attribute ***\" but none seems related to Keras (except for TensorFlow: AttributeError: 'Tensor' object has no attrib
@'Maëva LC': I can't post a comment, this answers your None
issue.
but the code is working fine without the line
model1_out = (lambda x: K.round(x), output_shape=...)(model1_out)
and not anything else. Anyway, thank you for trying.
Function round()
is not differentiable, hence the gradient is None. I suggest you just remove the line.