For example,
a = Input(...)
b = keras.layers.Conv2D(...)(a)
c = keras.backend.zeros(...)
c[...].assign(b[...])
Because it's used before a model is compiled, when I try to use the function assign()
(this is a TensorFlow function), there comes the error:
'Tensor' object has no attribute 'assign'.
This is probably because before the model is compiled, the first dim of the variable is None
.
So, is there any way to do a sliced assign ?