Inconsistency in variables being treated as tensor or numpy array

Thanks for taking an interest. Will do soon.