Why is there no ReflectionPad3d
, but ConstantPad3D
and ReplicationPad3d
? Is this on purpose?
I think the fundamental reason is that people tend to use the functional interface for that… But you could easily do this yourself as
class ReflectionPad3d(torch.nn.modules.padding._ReflectionPadNd):
def __init__(self, padding):
super(ReflectionPad3d, self).__init__()
self.padding = _ntuple(6)(padding)
or so.
Best regards
Thomas
Hi,
Trying to get this ReflectionPad3d
to work as well but keep getting NotImplementedError
I also cannot find the version for which pytorch implemented this mode
Right. Why we do not have torch.nn.ReflectionPad3d? · Issue #27655 · pytorch/pytorch · GitHub . It’s probably relatively easy to adapt reflection_pad2d to the 3d case.
Best regards
Thomas