There are two ways that you can use to load data into TensorFlow before training Machine Learning algorithms:
Data load into memory: Here, the data is loaded into the memory as a single array unit. It is the easiest way to load the data.
TensorFlow data pipeline: It is making use of the built-in APIs to load the data and feed it across to the algorithm.