Thus, the Frobenius norm is the sum over the matrix nxm, but tf.normallows you to process several vectors and matrices in batch mode.
To better understand, imagine that you have a rank 3 tensor:
t = [[[2], [4], [6]], [[8], [10], [12]], [[14], [16], [18]]]
This can be seen as several matrices aligned in one direction, but the function cannot determine which one. This may be a batch of the following matrices:
[2, 4, 6], [8 ,10, 12], [14, 16, 18]
or
[2 8 14], [4, 10, 16], [6, 12, 18]
Thus, it axismainly indicates which directions you want to consider when summing in the Frobenius norm.
In your case, either of [1,2]or [-2,-1]will work.