In the clip_gradients function of G2C.py is an error in generating grads and gvars. Originally is written:
grads, gvars = list(zip(*gvs)[0]), list(zip(*gvs)[1])
However, the round brackets are incorrectly set, so that it raises a TypeError: 'zip' object is not subscriptable.
This can be fixed by changing the line to:
grads, gvars = list(zip(*gvs))[0], list(zip(*gvs))[1]
In the clip_gradients function of G2C.py is an error in generating grads and gvars. Originally is written:
grads, gvars = list(zip(*gvs)[0]), list(zip(*gvs)[1])However, the round brackets are incorrectly set, so that it raises a TypeError: 'zip' object is not subscriptable.
This can be fixed by changing the line to:
grads, gvars = list(zip(*gvs))[0], list(zip(*gvs))[1]