doing tensor indexing but got AssertionError: Expected all args to be Tensors or Variables; but got CompositeTensor · Issue #13676 · keras-team/keras

I'm implementing a model for multi-class classification task, and the code runs when I call Model.fit() method. However, .fit() requires the entire dataset to be generated at once, which is too...