Hi Sevenfold!



 Sevenfold:

I have written a custom loss function and keep getting the error :

UnboundLocalError: local variable ‘beta1’ referenced before assignment



This does seem to be a known bug and the relevant pull request
does seem to suggest that the bug was fixed in 1.8.1.
Nevertheless, perhaps the fix didn’t make it into 1.8.1, or perhaps
you’ve uncovered a different bug that looks similar.
In any event, could you post a small, self-contained, fully-runnable
script that reproduces the issue?  You might also try upgrading to
the latest stable version, 1.10.0, just to see (and maybe, just for fun,
to the latest nightly).
Best.
K. Frank