Bucles en Tensorflow

Hello, I’m starting in tensor manipulation, I must make a code that needs iterations because I must analyze the elements of a tensor bit by bit, and move a mask in a bit when a certain condition is met (the goal is to determine the first bit of the tensor elements to 0) to make a transformation. Could you suggest me something for the cases where algorithmically we need a cycle.