Arbitrary Arch

Hi, I want define a neural network with layers like 4, 8, 4 or 8, 16, 8 in nvidia modulus framework. is there anyway to define this architecture fo network on modulus?