4 def reflectionpad_symbolic(g, input, *params):
6 paddings = prepare_onnx_paddings(len(input.type().sizes()), params)
7 return g.op(
"Pad", input, pads_i=paddings, mode_s=mode)
10 def replicationpad_symbolic(g, input, *params):
12 paddings = prepare_onnx_paddings(len(input.type().sizes()), params)
13 return g.op(
"Pad", input, pads_i=paddings, mode_s=mode)
17 'ReflectionPad1d': reflectionpad_symbolic,
18 'ReflectionPad2d': reflectionpad_symbolic,
19 'ReplicationPad1d': replicationpad_symbolic,
20 'ReplicationPad2d': replicationpad_symbolic,
21 'ReplicationPad3d': replicationpad_symbolic,