Ok, it seems that batch is a list of 2 tensors. I assume the first tensor is your input and the 2nd tensor is your target/label?
Try passing batch[0] as your input! That might work! 
Like this
make_dot(m1(batch[0]), params=dict(list(m1.named_parameters()))).render(“cnn_torchviz”, format=“png”)