Weights in a TF custom op

Hi all,

I’d like to define a custom convolutional op by following this: Create an op  |  TensorFlow Core. I’d ask you: how can I access filter weights in the Compute method? In the call to the REGISTER_OP macro, should I define filter dimensions? Where the weights are updated?