Hello, I can work on getting you a small sample. You should know that when I add self.__name__ = None this error as well as any subsequent errors go away, most directly when I remove that attribute I get:
  File "/home/gio/Documents/KNet/venv/lib/python3.7/site-packages/torch/autograd/__init__.py", line 100, in backward
    allow_unreachable=True)  # allow_unreachable flag
RuntimeError: <method 'clone' of 'torch._C._TensorBase' objects> returned a result with an error set

Unsure what modifications I made got it to not call name anymore, or if that error is getting silenced.