Ah ok, I see.
resnet34() is just a function for constructing the appropriate model. The model itself is just the ResNet.
However, you could simply add a new parameter to your model:
model = MyModel()
model.name = 'ResNet34'
print(model.name)

Will this meet your needs?