I think the word "tensor" is easy to confuse with the tensor in tensorflow, but actually "path_to_tensor" reads a picture and decodes it into a numpy matrix, so I think it should be named "path_to_matrix".
Of course you can also name it "path_to_array", or something else, but using "tensor" is really easy to get confused.
I think the word "tensor" is easy to confuse with the tensor in tensorflow, but actually "path_to_tensor" reads a picture and decodes it into a numpy matrix, so I think it should be named "path_to_matrix".
Of course you can also name it "path_to_array", or something else, but using "tensor" is really easy to get confused.