I tried this, but I’m not sure what I’m doing wrong (?) but I receive this error when trying to set weights:

ValueError: You called set_weights(weights) on layer “conv2d” with a weight list of length 9, but the layer was expecting 0 weights. Provided weights: [0.1111111111111111, 0.1111111111111111, 0.1111111…

I’m setting weights like this:
from tensorflow.keras.layers import Conv2D
import tensorflow as tf

output = Conv2D(filters=3, kernel_size=3, padding='same')
weights = output.get_weights()
print(weights) # []
output.set_weights([1/9]*9)
print(weights)

I would like to add weight of 1/9 for each cell of kernel