Got it working in the end. Had different errors after a new pull from TensorFlow Repo again actually. These were all related to integer variables, with subsequent division operations resulting in floats, which tensorflow didn’t like for a few functions where int32 or int64 types were explicitly required etc. So just explicitly casting these expressions as integers i.e. int() solved all the problems. Thanks for your help anyway!