PyTorch has constant, reflect, replicate, and circular padding modes while TensorFlow has CONSTANT, REFLECT, and SYMMETRIC.
PyTorch’s reflect and TensorFlow’s REFLECT are similar.
PyTorch’s replicate is similar to TensorFlow’s SYMMETRIC.
TensorFlow does not have an equivalent for PyTorch’s circular mode.
When I try to convert a replicate pad to tf, it seems that nobuco sends REPLICATE to tf.pad and it raise an error that it doesn't have such a mode.
ValueError: Exception encountered when calling layer "tf.pad" (type TFOpLambda).
Value of argument `mode` expected to be one of "CONSTANT", "REFLECT", or "SYMMETRIC". Received `mode` = REPLICATE
PyTorch has constant, reflect, replicate, and circular padding modes while TensorFlow has CONSTANT, REFLECT, and SYMMETRIC.
PyTorch’s reflect and TensorFlow’s REFLECT are similar. PyTorch’s replicate is similar to TensorFlow’s SYMMETRIC. TensorFlow does not have an equivalent for PyTorch’s circular mode.
When I try to convert a replicate pad to tf, it seems that nobuco sends REPLICATE to tf.pad and it raise an error that it doesn't have such a mode.