According to “https://pytorch.org/docs/stable/_modules/torch/nn/modules/batchnorm.html 11”, it seems that the parameter “track_running_stats” is something similar to “use_global_stats” in caffe. When set to false, it amounts to say that “use_global_stats = false” in both train and test Phase.
However, I think the behavior of batch norm in pytorch and caffe still has some minor differences.
What I would do is to convert pytorch model to caffemodel. Python seems to be hard to use for me.