In model.py, there are many typos and broken lines. Some imports are missed. e.g.
Line 14 should be
def forward(self, x, label, inference=False):
Missed imports are
import torch
import torch.functional as F
from torch.nn.parameter import Parameter
Without these edits, the released code is impossible to reproduce