eqy:

a = torchvision.models.resnet152()
b = list(a.children())[:-1]



replicates the same error.  It seems @ptrblck might be right and somehow the list function is overridden.  I’m not sure how to fix that…or where in my code that could happen.
@eqy