keras-lipschitz-networks icon indicating copy to clipboard operation
keras-lipschitz-networks copied to clipboard

Can this method be used for Conv3d layer?

Open Fangwq opened this issue 1 year ago • 2 comments

Can this method be used for Conv3d layer and enforce Lipschitz Continuity? And how to do it? Thank you very much!

Fangwq avatar Nov 27 '23 13:11 Fangwq

Yes it can. It might be a bit hard to think about how to do it for L1 and L_\infty norms, but for the L2 norm you can just adapt the lines 102-110 of arch/lipschitz.py and replace the K.conv2d and K.conv2d_transpose operations with their conv3d versions.

henrygouk avatar Nov 28 '23 03:11 henrygouk

Thank you very much!

Fangwq avatar Nov 28 '23 13:11 Fangwq