Thanks for your response. I had a quick look at the master branch for loss.py but it has the same problem?
pass at line 220 should it not contain something like:
# Creates a criterion ...
def __init__(self, margin=1.0, size_average=True):
self.margin = margin
self.size_average = size_average
def forward(self, input1, target):