Hi everyone: I have a question. Suppose I want to translate the following torch codes into relay front-end codes. I am confused about how to split relay expr into two parts. For example, here is my torch code:
offset_mask = nn.Conv2d(
in_channels, out_channels,
kernel_size=3,
padding=1)(data)
offset = offset_mask[:, :18, :, :]
mask = offset_mask[:, -9:, :, :].sigmoid()
I am trying to translate above codes into relay, but I am stuck how to translate the last two codes which require me to split relay.expr into two parts.
offset_mask = relay.nn.conv2d(data, weight, strides=(1,1) padding = (1,1), kernel_size = (3,3))
After that, how am I gonna to do?