Hi,
I would like to check one of modules stats in my model,However,I face the
SyntaxError when it’s name contains “.”.
Below is the case :
for name,param in model.named_buffers():
    print(name)

The result gives something like (I only take part of it):
cls_head.1.running_mean
cls_head.1.running_var
cls_head.1.num_batches_tracked

when I try to check the stats in module:
print(model.cls_head.1.running_mean)

It raises the error SyntaxError…How can I fix it ? Thanks!