'how to map train_generator test_generator into (x_train y_train x_test y_test )

I am using image data from local drive and load data using train_generator test_generator.

i want to know that how to

map or assign train_generator test_generator into x_train y_train x_test y_test

like train_generator = x_train (dont know)

like test_generator = y_test (dont know)

I need the concept.

Because every example is based on x_train y_train x_test y_test even transferlearning examples are based on it.

Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source