I have built a ResNet encoder here using Tensorflow which works fine...
from tensorpack.models import BatchNorm, BNReLU, Conv2D, MaxPooling, FixedUnPooling, AvgPo