def ignore_biasbn(directions):
    """ Set bias and bn parameters in directions to zero """
    for d in directions:
        if d.dim() <= 1:
            d.fill_(0)
 Set bias and bn parameters in directions to zero 
net_plotter.py