nb: LOG is messing up memory of stack allocated tensor