PyTorch NotImplementedError in forward

please look carefully at the indentation of your __init__ function: your forward is part of __init__ not part of your module.

Leave a Comment