out = graph.add_layer(self.batch_norm(planes), out)
if downsample is not None:
downsample_out = graph.add_layer(StubReLU(), node_id)
downsample_out = graph.add_layer(downsample[0], downsample_out)
residual_node_id = graph.add_layer(downsample[1], downsample_out)
out = graph.add_layer(StubAdd(), (out, residual_node_id))
return out