Track_running_stats removed?

Is the 'track_running_stats" attr removed from init() of nn.BatchNorm1d() and nn.BatchNorm2d() in latest Pytorch?

Nope.

I have also noticed this, but when I tried the following simple test, I got an error:

import torch
import torch.nn as nn
module = nn.BatchNorm2d(3, track_running_stats=False)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in ()
** 1 import torch**
** 2 import torch.nn as nn**
----> 3 module = nn.BatchNorm2d(3, track_running_stats=False)

TypeError: init() got an unexpected keyword argument ‘track_running_stats’

My mistake, that link was for the source code of the master branch. You must be running the latest pytorch release, i.e. version 0.3.1.

Make sure you check the docs for the proper release version, in this case http://pytorch.org/docs/0.3.1/nn.html#torch.nn.BatchNorm1d
rather than the docs for the master branch.

The track_running_stats argument was not removed from __init__() of nn.BatchNorm*d. It was added after the last release.

I see, thanks a lot!